function(info) { // info.item - the current row's data object // info.value - the current cell value // info.cell - the DOM element of the cell // return the computed value}
Parameter
Type
Description
info.item
object
The current row’s work item data. Access fields via info.item['fieldId'].
info.value
any
The current stored value of the cell before formula execution.
info.cell
HTMLElement
The DOM element representing the cell. Used for direct DOM manipulation in advanced scenarios.
Use bracket notation to access work item field values:
function(info) { var severity = info.item['sev']; var occurrence = info.item['occ']; var detection = info.item['det']; return severity * occurrence * detection;}
When accessing enum fields, info.item['fieldId'] returns the enum ID (e.g., "yes"), not the display name (e.g., "Y"). Always compare against enum IDs in formula logic.
Columns with formula are automatically set to readOnly: true
Hidden columns
Formula columns do not execute when hidden from the grid view. If a title column uses a formula and is hidden during item creation, the work item will have an incorrect title.
Change tracking
When formula results differ from stored values, the system can mark the item as edited
Persistence
Calculated values are persisted to Polarion fields when the item is saved
Formula columns do not execute when hidden. If you use a formula for the title field, keep that column visible during item creation. Use Saved Views to manage column visibility for different workflows rather than hiding formula columns.
Document-level custom fields can be accessed via $doc.getOldApi().getValue('customFieldID') in the risksheetTopPanel.vm script section, then referenced from risksheet.json formulas through top panel functions.
When formula columns have readOnly: false, or when items are imported without formula execution, use Menu > Rows > Check stored formulas (available since v24.5.1) to reconcile formula values between Polarion and Risksheet.