Prerequisites
- A Nextedy RISKSHEET document with at least one configured column
- Access to the sheet configuration (admin privileges required —
canAdminmust betrue) - Familiarity with calculated columns basics
- Risksheet v26.7.1 or later for the behavior described here (see Behavior on earlier versions)
How Formula Execution Relates to Visibility
Formula columns execute client-side JavaScript functions to compute derived values such as Risk Priority Numbers (RPN). Since v26.7.1, a formula column calculates whether or not it is shown in the active view. The columns that feed a formula may be hidden as well, and formulas that build on other hidden formulas resolve in order. Formula evaluation is driven by the document’s data, not by the grid’s rendering. Hiding a column, switching views, or scrolling past a column therefore has no effect on whether its formula runs.Formula evaluation is independent of column visibility; write-back to Polarion is not.
- Chained formulas — a formula that reads another formula’s column produces the correct value even when both columns are hidden.
- Cell decorators — conditional coloring and styling driven by a hidden calculation are applied correctly.
- Generated titles and descriptions — a formula that composes the work item title from other fields produces its value even if the title column was never displayed.
- Staged views — a view that shows a subset of a large sheet is safe to use as the default view.
When Values Are Displayed and When They Reach Polarion
This distinction is the one thing to understand about formula columns. Displaying a calculated value and storing it in Polarion are separate events with different triggers.readOnly: false are written back to Polarion at all. A formula column is read-only by default, which means its value is calculated and displayed in the sheet but never stored in a work item field.
Define Formulas in Configuration
formulas section of your sheet configuration. Each formula is a named JavaScript function that receives an info object containing the current row data. The function must return the computed value, or null if the computation cannot be performed (for example, when input fields are empty).Basic RPN Formula
The most common formula pattern calculates Risk Priority Numbers by multiplying severity, occurrence, and detection ratings:Title Concatenation Formula
Another common pattern concatenates multiple fields into a title or description:The info Object Reference
The formula function receives a single info parameter with these properties:Assign Formulas to Columns
formula property. When a column has a formula set, Risksheet automatically sets readOnly to true for that column, preventing users from manually overriding computed values.Choose Column Visibility for Readability Alone
visible property on individual columns, through saved views, or through the grid’s column visibility controls — all three are equivalent as far as formulas are concerned.Hide Intermediate Calculations
Setvisible: false on columns that exist only to feed other columns:riskScore, and because readOnly is false, the value is still stored in Polarion when the row is created or edited.Use Saved Views for Context-Specific Layouts
Define a full editing view and a separate export view that omits helper columns:Reconcile Stored Values in Bulk
- External edits. Rows changed through Polarion’s work item editor, an import, or the API display correct values on open but keep their stored values until each row is edited. This action stores them all at once.
- Documents created before v26.7.1. Rows created while a formula column was hidden on an earlier version may have empty or stale stored fields. Run this once per document to bring them up to date.
- Newly added formula columns. When you add a formula column with
readOnly: falseto a sheet that already contains data, this action populates the stored field for existing rows. - Data migration drift. Polarion upgrades or migrations may truncate or alter stored values (for example, title fields truncated to 80 characters), causing formula outputs to differ from stored values.
Running the Reconciliation
- Open the Risksheet document in your browser. The action refuses to run while the document has unsaved changes, so save or discard them first.
- Navigate to Menu > Rows > Check stored formulas.
- Risksheet reloads the data, recalculates every formula column for every row, and compares the computed values against the stored Polarion values.
- Any discrepancies are flagged, and the items are marked as edited.
- Save the document to persist the corrected values back to Polarion.
Handle Title Formula Columns
readOnly: false so the computed title reaches the Polarion title field. The column does not need to be visible:Combine Formulas with Conditional Formatting
cellDecorators to provide color-coded visual feedback on computed values. For RPN columns, apply threshold-based styling to highlight risk levels:When a Formula or Decorator Is Not Defined
If a column references a formula or a cell decorator that the configuration does not define — a misspelled name, or a missingformulas or cellDecorators section — Risksheet shows a dismissible warning on the sheet under the heading Risksheet configuration, naming the column and the missing entry. The warning appears once per column, and the rest of the sheet keeps working: the column shows its stored value and every other column renders normally.
A JavaScript error thrown inside a formula or decorator is a different case and is reported in the browser console rather than on the sheet. See Error Messages for how to tell the two apart.
Behavior on Earlier Versions
On Risksheet versions earlier than v26.7.1, formulas ran during cell rendering, so a formula column calculated only while it was visible in the active view. Hiding a formula column meant its value was not computed, dependent formulas and decorators read stale or empty values, and rows created in such a view stored empty fields in Polarion. If you are running an earlier version, the previous guidance still applies: keep formula columns and their input columns visible in any view used for data entry, avoid making a view that hides formula columns the default, and run Check stored formulas from a view showing all formula columns to reconcile affected rows. Upgrading to v26.7.1 removes the constraint; run Check stored formulas once per affected document afterwards to correct values stored under the old behavior.Verification
After configuring formula columns and visibility settings, you should see:- ✅ Formula columns display computed values automatically (for example, RPN = Severity × Occurrence × Detection)
- ✅ Hiding a formula column leaves its value, and every value derived from it, unchanged
- ✅ New items receive correct computed values in any view, including views where the formula column is hidden
- ✅ Fields with
readOnly: falseare populated in Polarion for rows created or edited in any view - ✅ Reopening the document shows current values with no manual recalculation step
- ✅ The Check stored formulas option is available under Menu > Rows (requires v24.5.1 or later)
- ✅ Conditional formatting (cell decorators) reflects computed formula values, including values from hidden columns
See Also
- Configure Calculated Columns — full guide to column formulas and the
formulaproperty - Apply Conditional Formatting — style cells based on formula output using cell decorators
- Control Column Visibility — manage which columns appear in the grid
- Create Saved Views — define view presets for editing and export workflows
- Control Column Visibility in Exports — export-specific column settings
- Configure Permissions — understand how field permissions interact with formula saves