By the end of this tutorial, you will understand the risksheet.json configuration file structure, know how to locate and open it, add a new column, define a formula for Risk Priority Number (RPN) ca
By the end of this tutorial, you will understand the risksheet.json configuration file structure, know how to locate and open it, add a new column, define a formula for Risk Priority Number (RPN) calculation, and apply conditional formatting to highlight risk levels with color coding.
Risksheet ships with a demo project configuration based on the DrivePilot template. The demo includes pre-configured risk item types, rating scales, and column layouts. This tutorial builds on the demo configuration as a starting point, but the steps apply to any project.
The Risksheet configuration is stored in a file named risksheet.json attached to your Polarion LiveDoc document.Open your Risksheet document in the browser. Click the ⚙️ Configure button in the toolbar to open the configuration editor.You should see the configuration editor interface in a new browser window, showing the current JSON configuration for your document.
The configuration editor opens at the URL pattern {baseUrl}/risksheet/configuration/ with query parameters for your project and document. You can also navigate directly to this URL.
Maps to the effect custom field on Polarion work items
header
"Effect of Failure"
Text displayed in the column header
type
"text"
Plain text data type
width
200
Column width in pixels
level
2
Appears at the second hierarchical level (cause/effect level)
After saving, you should see the new “Effect of Failure” column in the grid at the position matching its order in the columns array.
The binding value must match an existing custom field ID in your Polarion project. If the field does not exist, the column will display empty values. Create the custom field in Polarion administration first, then reference it in your column binding.
Rating columns need scale definitions so users see meaningful dropdown options instead of raw numbers. Add severity and occurrence scales to the ratings section:
The Risk Priority Number (RPN) is calculated by multiplying Severity, Occurrence, and Detection values. Define the formula in the formulas section and reference it from a column.Add the formula:
{ "formulas": { "commonRpn": "function(info){ var value = info.item['occ']*info.item['det']*info.item['sev']; return value?value:null;}" }}
You should see the RPN column automatically calculating values when severity, occurrence, and detection are filled in. The column is automatically read-only because it has a formula property set.
The info parameter provides info.item — an object with the current row’s field values keyed by column id. Access any column value with info.item['columnId']. Return null for empty/invalid results to display a blank cell.
Color-code the RPN column to visually indicate risk levels. This requires two pieces: a cellDecorators function that applies CSS classes, and styles definitions for those classes.Add the cell decorator:
Save the configuration in the configuration editor. The Risksheet grid reloads with your changes applied.Verify the following:
The new “Effect of Failure” column appears in the grid
Severity and Occurrence columns show dropdown selectors with your scale values
The RPN column calculates automatically when S, O, and D values are entered
RPN cells are color-coded based on the calculated value
If the grid fails to load after saving, check the browser console for error messages. Common issues include: missing commas in JSON, unmatched brackets, invalid formula syntax, or column binding values that do not match Polarion field names. The error "Error while reading configuration" indicates a JSON parsing failure.