Skip to main content

Widget Parameter Overview

diagram

Data Type Parameters

The dataTypes object configures the work item types used in the Risksheet grid. Each entry defines the Polarion work item type, link role, and behavior settings for a category of items.

dataTypes Property

NameTypeDefaultDescription
dataTypesobject{}Configures risk and task data types including query factories, work item types, roles, and menu visibility. Each key identifies a data type category (e.g., risk, task).

Risk Item Data Type

NameTypeDefaultDescription
dataTypes.risk.typestringNoneWork item type identifier for risk items (e.g., failureMode, hazard, riskItem). Must match a work item type defined in the Polarion project. Supports dynamic expression evaluation from project properties.
dataTypes.risk.rolestringNoneLink role used when creating relationships between risk items and parent structures. Defines the traceability relationship in Polarion’s link model.
dataTypes.risk.removeStrategystringdeleteStrategy for removing risk items from the grid. delete permanently removes the work item from Polarion.
dataTypes.risk.rejectedActionstringrejectWorkflow action executed when a risk item is rejected during a review process. Must match a valid workflow action defined for the risk work item type.
dataTypes.risk.rejectedStatusstringrejectedStatus value applied to rejected risk items after the rejected workflow action executes.
dataTypes.risk.rejectedResolutionstringinvalidResolution value applied to rejected risk items. Set alongside the rejected status during the rejection workflow.
dataTypes.risk.showInMenubooleantrueControls whether the risk item creation option appears in the toolbar menu and context menu. Set to false to prevent users from creating new risk items directly in the grid.

Task/Mitigation Data Type

NameTypeDefaultDescription
dataTypes.task.typestringNoneWork item type identifier for mitigation tasks (e.g., mitigationAction, corrective_action, task). Must match a work item type defined in the Polarion project.
dataTypes.task.rolestringNoneLink role for connecting tasks to their parent risk items. Defines the mitigation relationship in Polarion’s link model.
dataTypes.task.namestringTaskDisplay name for the task type shown in context menu labels (e.g., Open Task Item becomes Open Mitigation Action when set to "Mitigation Action").
dataTypes.task.showInMenubooleantrueControls whether the task creation button appears in the toolbar menu and context menu. Set to false to hide the task creation option.
dataTypes.task.zoomColumnstringNoneColumn ID that receives focus after a new task is created. Determines which column the cursor moves to when you add a task from the context menu.
Set showInMenu: false on dataTypes.task or dataTypes.risk to remove the creation button from the toolbar and context menu. For item link columns, use canCreate: false to allow linking existing items only without creating new ones.

Task Column Configuration

NameTypeDefaultDescription
taskColumnstringNoneColumn ID that holds the task identifier. Used by the grid to determine task presence, generate new task IDs, and group task rows under their parent risk items. Critical for task management features including context menu actions and multi-task insertion.
When you create a new task, Risksheet automatically generates a unique task identifier. The ID is stored in both the taskColumn binding and the companion {taskColumn}_link field, which holds the reference to the linked Polarion work item.

Multi-Task Behavior

When adding tasks to risk items that already have tasks, Risksheet:
  1. Clones the current record as a template for the new task
  2. Clears task-level fields (task ID, link fields, readonly flags, and all columns marked as task attributes)
  3. Initializes multi-enum columns to empty arrays (not null)
  4. Generates a new unique task ID
  5. Inserts the new row immediately after all sibling tasks with the same systemItemId

Sorting Parameters

sortBy Property

NameTypeDefaultDescription
sortByarray[]Array of column IDs defining the default sort order when the grid loads. Column IDs are listed in priority sequence — the first entry is the primary sort, the second is the secondary sort, and so on. Prefix a column ID with ~ (tilde) for descending sort.

Sort Order Examples

Ascending sort by severity:
{
  "sortBy": ["severity"]
}
Descending sort by due date, then ascending by priority:
{
  "sortBy": ["~dueDate", "priority"]
}
Sort by outline number to match LiveDoc order:
{
  "sortBy": ["outlineNumberColumn"]
}
To sort Risksheet items by document outline number (matching the LiveDoc order), create a serverRender column that uses Velocity to extract and zero-pad outline number segments, then set that column’s ID as the sortBy parameter. Zero-padding ensures that 1.10 sorts after 1.2.

Sort Behavior by Column Type

Risksheet applies specialized sorting logic automatically based on the column type:
Column TypeSort LogicDetails
string, text fieldsAlphabeticalStandard string comparison
int, float, rating, currencyNumericNumeric comparison with proper handling of negative values and decimals
enum, multiEnumBy display nameSorted by the enum option’s name property, not the id
date, datetime, timeChronologicalDate-aware comparison ensuring proper temporal ordering
itemLink, taskLinkAlphanumeric IDWork item ID sort that handles the PROJECT-NNN format correctly (e.g., PROJECT-2 sorts before PROJECT-10)
multiItemLinkConcatenated labelsParses JSON array, concatenates all item labels, and sorts by the combined string. Unsaved items (prefixed with *) are sorted with their asterisk intact.
outlineNumber bindingHierarchicalHierarchical sort where 1.2 comes before 1.10, maintaining document structure
All sorting, filtering, and pagination are performed client-side in the browser for immediate visual feedback without server round-trips. Data is loaded once from the server and manipulated entirely in the client.

Baseline Comparison Sorting

When comparing to a baseline, the sort system switches context to compare-to-link item values for all columns except systemItemId and systemItemRevision. This means sorting during baseline comparison operates on the baseline snapshot values rather than current values, except for system identity fields which always refer to the current item.

Read-Only Parameters

Grid-Level Read-Only

NameTypeDefaultDescription
readonlybooleanfalseMakes the entire Risksheet grid read-only, preventing any user edits to grid cells or structure. Automatically set to true when viewing historical revisions (non-empty revision URL parameter).
downstreamReadonlybooleanfalseMakes downstream linked items (items from other documents) read-only. When true, prevents edits to downstream items and blocks task creation for items with downstream readonly state.
reviewerbooleanfalseEnables reviewer mode, which restricts editing capabilities and shows review-specific UI controls. Designed for users who review risk analyses without modifying the data.

Administrative Permissions

NameTypeDefaultDescription
canAdminbooleanfalseIndicates whether the current user has administrative privileges for configuration editing. When true, the user can access the Risksheet configuration editor. This value is set by the server based on user permissions.

Auto-Applied Read-Only Rules

The system automatically sets read-only state for certain columns and conditions, independent of the readonly configuration:
ConditionEffect
System fields (id, status, type, outlineNumber)Always read-only
Formula columns (column has formula property)Automatically read-only — values are calculated, not entered
Server-rendered columns (column has serverRender property)Read-only — content is generated server-side
Historical revisions (non-empty revision parameter)Entire grid forced read-only
Permission-denied fields (systemReadOnlyFields array)Listed fields locked per item
Task attributes on items without tasksRead-only until a task is created

Column Parameters

Column Definition Properties

NameTypeDefaultDescription
columnsarray[]Array of column definitions that configure the Risksheet grid structure. Each entry defines a column’s binding, type, header, width, and behavior.
Key column properties relevant to widget behavior:
NameTypeDefaultDescription
idstringRequiredThe data field binding name. Maps to a Polarion work item field or system property.
headerstringRequiredDisplay text shown in the column header.
widthnumberundefinedColumn width in pixels.
minWidthnumberundefinedMinimum width in pixels during column resize.
readOnlybooleanundefinedWhether the column cells can be edited by users.
typestringundefinedColumn type determining editor and display behavior. Values: enum:id, rating:id, int, float, currency, boolean, datetime, date, time, workflow, multiEnum:id, multiItemLink.
formulastringundefinedName of a formula function from the formulas object. Makes the column automatically read-only.
cellRendererstringundefinedName of a custom cell renderer function for display customization.
cellCssstringundefinedStatic CSS class applied to all cells in the column.
headerGroupstringundefinedColumn group name for multi-level headers.
collapseTostringundefinedColumn ID to collapse this column into when the header group is collapsed.
multiLinebooleantrueEnables multi-line text display and editing within cells.
wordWrapbooleantrueControls whether text wraps within cells.

View Parameters

NameTypeDefaultDescription
viewsarray[]Array of saved view presets defining column visibility configurations. Each view specifies which columns are visible, allowing users to switch between different analysis perspectives (e.g., “FMEA View”, “Mitigation View”, “Review View”).
See Saved Views for detailed view configuration reference.

Review Parameters

NameTypeDefaultDescription
reviewsobject{}Configures review workflow integration with review manager specification.
reviews.reviewManagerstringNoneReview workflow mode. Determines how reviews are created and stored.

Review Manager Options

ValueDescription
CommentBasedReviews are created as Polarion comments attached to the work item. The first review mode checked — takes precedence if multiple modes are configured.
ApprovalBasedReviews use Polarion’s native approval comment system. Comments are created with the fixed title Approval comment. Displays reviewer name, timestamp, and comment text.
WorkItemBasedReviews are created as separate Polarion work items linked to the reviewed item. Requires additional configuration: typeProperties.linkTypes (work item type) and typeProperties.linkRole (link role). Supports cross-project review creation.
The review system adds two special column bindings to the grid:
BindingDescription
reviewsRenderedDisplays review status and approval information formatted as HTML with the risk_reviews CSS class
reviewsAddProvides UI controls to create new reviews or approvals

Header Parameters

NameTypeDefaultDescription
headersobject{}Configures row header width/renderer and column header heights for grid layout customization.
headers.rowHeader.rendererstringNoneName of a cell decorator function applied to row headers (e.g., rowHeaderRpnNew for RPN-based coloring).
headers.columnHeader.heightnumber32Height in pixels for column headers.
headers.columnGroupHeader.heightnumber32Height in pixels for column group headers (when columns are organized into groups).

Global Parameters

NameTypeDefaultDescription
globalobject{}Global Risksheet settings including culture/locale, help URL, refresh behavior, and menu organization.
global.culturestringenCulture/locale code for the Risksheet interface. Affects date formats, number formats, and localization. See Culture and Localization Codes.
global.suggestTextFieldsbooleantrueEnables autocomplete suggestions for text fields using OData queries, local changes, or configured suggestion sources.

Configuration Source Parameters

NameTypeDefaultDescription
sourcestringnullPath to the configuration source file (document or template) used to load this Risksheet configuration. Set automatically by the system.
templateNamestringnullName of the template document from which configuration was inherited. Includes project name prefix if the template is from a different project. Empty if configuration is directly attached to the document.

Session and Runtime Parameters

ParameterTypeDescription
baseUrlstringBase URL for the Risksheet application, used to construct data service endpoints and navigation URLs. Resolved from the runtime context.
projectIdstringPolarion project identifier used in API endpoints and URL construction.
revisionstringDocument revision identifier. Empty string indicates current/head revision. Non-empty value forces readonly: true.
currentRevisionstringLatest revision number of the document. Used to determine if viewing current or historical version.
versionstringFull version string of the Risksheet application including build metadata.
shortVersionstringShortened version identifier without build metadata for display purposes.
configEditUrlstringURL to the Risksheet configuration editor interface ({baseUrl}/risksheet/configuration/).

Polarion Administration Parameters

These project-level properties in Polarion Administration affect Risksheet work item behavior. Configure them in the Polarion project settings, not in risksheet.json.
NameTypeDefaultDescription
nextedy.risksheet.templatePathstringRisks/Risk SpecificationDocument template path(s) where risk documents can be created. Supports multiple paths separated by commas.
nextedy.risksheet.toolNamestringRisksheetCustom display name for the tool in the Polarion UI. Organizations can rebrand (e.g., FMEA Tool, Risk Matrix).
nextedy.risksheet.documentNamesstringRisk AnalysesPlural form of the document name shown in UI navigation.
nextedy.risksheet.documentNamestringRisk AnalysisSingular form of the document name shown in UI.
nextedy.risksheet.branchingSupportbooleanfalseEnables referenced work items from branched documents. Required for document.id queries.
nextedy.risksheet.disableAutoSuspectbooleanfalseDisables automatic suspect link marking when changes are made through Risksheet. When true, edits in Risksheet will not trigger suspect links.
nextedy.risksheet.suggester.requireKeywordbooleanfalseControls whether keywords are mandatory when using the suggester for finding and linking work items.
nextedy.risksheet.suggester.fuzzybooleantrueEnables fuzzy searching in the item suggester, allowing approximate matches for spelling variations.
nextedy.risksheet.suggester.resultLimitnumber20Maximum number of suggestions shown when searching for items to link. Higher values may impact performance.
nextedy.risksheet.suggester.wildcardbooleantrueEnables wildcard characters (* and ?) when searching for items.
nextedy.risksheet.suggester.allFieldsbooleanfalseWhen true, searches all fields of linked items instead of just primary fields. May impact performance.
nextedy.risksheet.checkLinkRoleCompliancebooleanfalseEnables multiple link roles from risk items.

Deferred Commit Mode

Risksheet uses deferred commit mode for data persistence. Changes are batched in memory and sent to the server together when you click Save, rather than saving each edit immediately.
BehaviorDescription
Batch editingMultiple edits accumulate in the browser before persistence
Save operationAll pending changes are submitted to the server in a single transaction
New item handlingNew items receive temporary *-prefixed IDs until saved. After save, IDs are replaced with permanent Polarion work item IDs.
Entity updatesAfter save, the grid replaces entity content in-place for both new items (by temporary ID) and existing items (by permanent ID)

Complete Example

{
  "dataTypes": {
    "risk": {
      "type": "failureMode",
      "role": "has_parent",
      "removeStrategy": "delete",
      "rejectedAction": "reject",
      "rejectedStatus": "rejected",
      "rejectedResolution": "invalid",
      "showInMenu": true
    },
    "task": {
      "type": "mitigationAction",
      "role": "mitigates",
      "name": "Mitigation Action",
      "showInMenu": true,
      "zoomColumn": "taskTitle"
    }
  },
  "taskColumn": "taskId",
  "sortBy": ["~severity", "title"],
  "readonly": false,
  "downstreamReadonly": true,
  "reviewer": false,
  "reviews": {
    "reviewManager": "CommentBased"
  },
  "headers": {
    "rowHeader": { "renderer": "rowHeaderRpnNew" },
    "columnHeader": { "height": 32 },
    "columnGroupHeader": { "height": 32 }
  },
  "global": {
    "culture": "en",
    "suggestTextFields": true
  },
  "views": [],
  "columns": [
    { "id": "id", "header": "ID", "width": 80, "readOnly": true },
    { "id": "title", "header": "Failure Mode", "width": 200 },
    { "id": "sev", "header": "S", "width": 60, "type": "rating:severity" },
    { "id": "occ", "header": "O", "width": 60, "type": "rating:occurrence" },
    { "id": "det", "header": "D", "width": 60, "type": "rating:detection" },
    { "id": "rpn", "header": "RPN", "width": 80, "formula": "commonRpn" },
    { "id": "taskId", "header": "Task", "width": 100, "type": "taskLink" },
    { "id": "taskTitle", "header": "Task Title", "width": 200 }
  ]
}
Support TicketsSource Code
  • AppConfigParser.ts
  • RiskItemsODataCollectionView.ts
  • SheetConstants.ts
  • IReview.java
  • SystemConsts.java