How Rating Scales Are Defined
Rating scales such as severity, occurrence, and detection are NOT defined inside the sheet configuration. They are standard Polarion enumerations, and Risksheet binds to them like any other Polarion field. The setup follows four steps:- Define the enumeration in Polarion. In Administration > Enumerations, create an enum (for example
severity-enum,occurrence-enum,detection-enum). Each enum entry has an ID (used in formulas), a name (shown in dropdowns), and an optional description. - Add a custom field on the risk work item type. In Administration > Work Items > Custom Fields, add a field (for example
severityRating) whose type points at the enumeration you created. - Bind a Risksheet column to the custom field. In the sheet configuration, declare a column with
type: rating:<enumId>andbindings: <fieldId>. - Reload the document. The server loads enum values automatically — there is nothing to register in the sheet configuration file.
ratings, enums, or relations section appears in any real production sheet configuration. Those sections do not exist in the Risksheet engine. Rating scales live in Polarion, where they benefit from the platform’s permissions, audit trail, and reuse across projects.
Configure Rating Columns
Once the Polarion enumerations and custom fields exist, declare the rating columns in the sheet configuration. Usetype: rating:<enumId> for the rating dropdowns and a formula reference for the calculated RPN column:
bindings(plural) is the property name. It carries the Polarion custom field ID, not the enumeration ID.type: rating:<enumId>tells Risksheet to render a dropdown sourced from the named Polarion enumeration.- A column that sets
formulabecomes read-only by default — the value is calculated, not user-entered.
Add RPN Formulas
Define named formulas in theformulas section. The standard FMEA RPN multiplies severity, occurrence, and detection:
commonRpncalculates the initial RPN before mitigation (S x O x D).commonRpnNewcalculates the revised RPN after mitigation actions are applied.
info.item['<id>'] accessor reads the current row’s value for a given column ID. Returning null when any input is missing keeps the RPN cell empty until all three ratings are entered.
Apply Conditional Formatting
UsecellDecorators and styles to color-code the RPN cell based on numeric thresholds. The decorator toggles a CSS class on the cell; the styles section defines what each class looks like:
Thresholds are deployment-specific. The 150/250 split shown here matches several Nextedy reference configurations, but production teams often tune the boundaries to their own risk acceptance criteria. Always use
$(info.cell).toggleClass(...) rather than inline styles — grid cells are reused as you scroll, and toggle calls clean up correctly on each render.
Configure Row Header Risk Indicator
Apply the risk level to row headers for at-a-glance assessment using theheaders.rowHeader.renderer property:
rpnNew), giving engineers instant visibility into which risk items still require attention after mitigations are applied.
Verify Your Changes
After reloading the document you should see:- Rating dropdowns populated from the Polarion enumerations, with descriptions visible as tooltips.
- The RPN column calculating automatically as soon as severity, occurrence, and detection are all entered.
- Cells displaying green, yellow, or red formatting based on the RPN thresholds.
- Row headers reflecting the post-mitigation risk level.
See Also
- Configure FMEA Workflows — complete FMEA setup with risk matrices
- Configure HARA Workflows — HARA risk matrices with probability/severity
- Set Up Action Priority Matrix — alternative to RPN scoring
- Apply Conditional Formatting — additional formatting patterns
- Configure Calculated Columns — formula configuration details