Overview
System fields enable RISKSHEET to maintain item identity across document revisions, manage permissions at the field level, track review states, and support comparison workflows. Users interact with these fields indirectly through features like historical revision viewing, baseline comparison, and permission management.Item Identity System
These system fields preserve work item identity when viewing historical revisions, comparing baselines, or navigating between document versions.| Field Name | Type | Purpose | User Interaction |
|---|---|---|---|
systemOriginalItemId | string | Original item identifier before any revision changes | Read-only; used internally for cross-revision tracking |
systemItemId | string | Current item identifier in the viewed revision | Read-only; displayed as the working ID |
systemItemProjectId | string | Polarion project identifier where item resides | Read-only; enables cross-project linking validation |
systemItemRevision | string | Specific revision number of this item version | Read-only; populated when viewing historical revisions |
systemItemFrozenRevision | string | Marks item as frozen at a specific baseline revision | Read-only; prevents changes to frozen items |
Use Cases
When comparing two document revisions, the identity system allows RISKSHEET to:- Track which items existed in both revisions
- Identify newly created items (present only in newer revision)
- Identify deleted items (present only in older revision)
- Map item properties between revisions for change highlighting
- Navigate between revisions while maintaining context
Read-Only State Management
Read-only controls are applied at two levels: the entire item and individual fields within an item. This enables fine-grained permission management.| Field Name | Type | Scope | Purpose |
|---|---|---|---|
systemReadOnly | boolean | Item-level | Prevents all editing when true; applies to risk items or work items |
systemReadOnlyFields | array | Field-level | JSON array of field binding names that cannot be edited; overrides column readOnly setting |
systemTaskReadOnly | boolean | Task-level | Prevents editing of linked mitigation/downstream tasks when true |
systemTaskReadOnlyFields | array | Task fields | JSON array of field names within task items that are protected from editing |
How Read-Only is Applied
- Edit the cell content
- Copy formatted content (only plain text)
- Use cell editors (dropdowns, date pickers, etc.)
- Navigate into the cell with keyboard
Read-only status comes from three sources:
- Polarion permissions — User lacks modify permission for the field
- Configuration — Column has
readOnly: trueset in risksheet.json - System fields — Field is in
systemReadOnlyFieldsarray
Review Workflow System
These system fields manage the display and state of review workflows within the RISKSHEET grid.| Field Name | Type | Purpose | Notes |
|---|---|---|---|
reviewsRendered | boolean or array | Indicates which items have been rendered in review mode | When true, shows review indicators in grid; used by review columns |
reviewsAdd | boolean | Controls whether new review entries can be added for this item | Allows users to add approvals/comments directly from grid |
Review Integration
When review workflows are enabled in the configuration:- RISKSHEET displays special
reviewsRenderedandreviewsAddcolumns - These columns are automatically generated system columns
- Users see approval status and can add review entries without leaving the grid
- System fields track which items have been reviewed
Reference Item System
These system fields identify items that are external references from other projects or spaces in cross-project configurations.| Field Name | Type | Purpose | Behavior |
|---|---|---|---|
systemReferenceType | string | Identifies items pulled from external projects or spaces | When populated, marks item as reference (not local copy) |
Reference Item Behavior
Reference items in cross-project RISKSHEET configurations:- Display: Shown with special visual indicators in the grid
- Editing: May be read-only or support limited editing depending on configuration
- Actions: Context menu offers option to convert reference into local copy
- Linking: Can be linked to local items through normal traceability columns
Standard Item Data Bindings
In addition to system fields, these standard bindings are reserved for core item identification:| Binding | Type | Purpose | Read-Only |
|---|---|---|---|
id | string | Unique work item identifier in Polarion | True |
tempId | string | Temporary ID assigned to newly created items before server persistence | True |
link | string | HTML hyperlink to the Polarion work item (internal use) | True |
title | string | Display title or name of the work item | False (usually) |
revision | string | Document revision identifier when viewing historical versions | True |
idNew | boolean | Flag indicating item exists only in current document, not yet saved to Polarion | True |
label | string | Display label or short name for the item | False |
Binding Naming Conventions
When you create item link columns, RISKSHEET automatically generates companion fields:| Source Binding | Generated Field | Description |
|---|---|---|
linkedItem | linkedItem | JSON object with {id, title, label} |
linkedItem | linkedItem_link | HTML link to Polarion |
linkedItem | linkedItem_title | Display title string |
linkedItem | linkedItem_id | Item ID string |
_link(reserved for HTML rendering)_title(reserved for display text)_id(reserved for identifier extraction)
CSS Classes for System Fields
System fields automatically receive CSS classes for visual styling:| CSS Class | Applied When | Visual Effect |
|---|---|---|
readonly | Cell has read-only status | Gray background, disabled appearance |
updated | Cell value changed during edit session | Highlighted border |
invalid | Cell value fails validation | Red border, error indicator |
new-item | Row created but not yet saved | Green highlight, new item indicator |
Configuration Best Practices
When configuring columns:- Use Polarion field bindings for user-visible data
- Use item link bindings for traceability
- Let RISKSHEET manage system field columns automatically
- Configure permissions at the Polarion level for access control
Troubleshooting System Field Issues
| Problem | Cause | Solution |
|---|---|---|
| All cells appear read-only | systemReadOnly: true for item or no edit permissions | Check Polarion permissions or remove read-only flag |
| Some fields locked but not others | systemReadOnlyFields array configured | Review configuration to see which fields are protected |
| Can’t edit items in comparison mode | Viewing historical revision | Switch to current revision to enable editing |
| Reference items won’t update | systemReferenceType set on item | Convert reference to local copy in context menu |
| Reviews not appearing | reviewsRendered column not configured | Enable review configuration in risksheet.json |
Sources
Sources
Source Code
SystemConsts.javaSheetConstants.tsAddTaskCommand.tsRiskSheetContextMenu.tsInsertRowsBelowCommand.ts