Overview
Task link columns are specialized column types that render links to downstream work items associated with each risk item. Common use cases include:- Displaying mitigation tasks (risk control measures) linked to FMEA/HARA risks
- Showing related downstream work items from different projects
- Creating traceability chains from risks to implementation tasks
Column Configuration
| Name | Type | Default | Description |
|---|---|---|---|
type | string | required | Must be set to "taskLink" to enable task link rendering. Creates a link column for downstream work items. |
id | string | required | Unique identifier for this column. Used as reference in bindings and dataTypes.task.zoomColumn properties. |
header | string | required | Display text shown in column header (e.g., “Task ID”, “RC ID”, “Mitigation Task”). |
headerGroup | string | optional | Groups multiple columns under a single header section (e.g., “Risk Control”, “Mitigations”). |
headerCss | string | optional | CSS class for styling the column header cell. |
headerGroupCss | string | optional | CSS class for styling the header group section. |
width | number | optional | Fixed column width in pixels. Numeric values are converted automatically. |
minWidth | number | optional | Minimum column width in pixels when resizing. |
readOnly | boolean | true | Task link columns are read-only by default. Set to false if editing is required (requires configuration in dataTypes). |
format | string | optional | Display format string for the linked item ID or title. |
sortable | boolean | true | Whether column values can be sorted alphabetically. |
filterable | boolean | true | Whether users can filter the Risksheet by task link values. |
collapseTo | string | optional | Column ID to collapse this column into for compact display mode. |
canCreate | boolean | true | Allows users to create new task items directly from the cell. |
showEnumDescription | boolean | false | If task type is enumerated, shows descriptions in dropdown menus. |
Column Type Definition
Task link columns require"type": "taskLink" in the column configuration:
Data Type Configuration
Task link columns require correspondingdataTypes configuration to define the downstream work item type:
| Property | Type | Default | Description |
|---|---|---|---|
dataTypes.task.type | string | required | Polarion work item type(s) for downstream items (e.g., "task", "riskControl", or comma-separated multiple types: "task,issue,customType"). |
dataTypes.task.role | string | required | Link role name used when creating relationships (e.g., "mitigates", "relatedTo"). |
dataTypes.task.name | string | optional | Display name for task items shown in menus and UI labels (e.g., “Risk Mit. Measure”, “Mitigation Task”). |
dataTypes.task.zoomColumn | string | required | Column ID that displays the task item’s title or identifier for zoom operations. |
dataTypes.task.showInMenu | boolean | true | Controls whether task creation options appear in context menus. |
dataTypes.task.document | string | optional | Document folder path and name to load task items from (e.g., "Risks/Tasks", "Requirements/All"). Use full path notation. |
dataTypes.task.project | string | optional | Project ID or comma-separated list of projects to load task items from (e.g., "myProject", "proj1,proj2,proj3"). |
dataTypes.task.projects | string | optional | Alias for project - comma-separated list of projects for loading items from multiple projects. Available from version 23.7.0+. |
dataTypes.task.query | string | optional | Custom Polarion query to filter which task items are displayed (e.g., "status:released", "severity:high"). |
dataTypes.task.createInCurrentDocument | boolean | false | When true, new task items are created in the current Risksheet document instead of the default location. Available from version 23.1.0+. |
dataTypes.task.createInDocument | string | optional | Specifies a target document for newly created task items (e.g., "Risks/Tasks"). Overrides createInCurrentDocument. Available from version 24.8.1+. |
Data Type Example
Related Column Bindings
Once a task link column is defined withid: "task", other columns can display task properties using dot notation:
| Binding | Type | Description |
|---|---|---|
task.title | string | Task item title or name field. |
task.status | string | Current workflow status of the task. |
task.id | string | Unique identifier of the task work item. |
task.severity | enum | Severity rating or custom enum field from task. |
task.type | string | Work item type ID of the task. |
task.project | string | Project ID where the task is stored. |
task.dueDate | date | Due date or target completion date for the task. |
task.assignee | string | User assigned to the task. |
task.<customField> | any | Any custom field defined on the task work item type. |
Display Task Properties Example
Multi-Project Task Loading
Starting with version 23.7.0, task items can be loaded from multiple projects:Task Item Creation
Create in Current Document
New task items are created in the current Risksheet document:Create in Specified Document
New task items are created in a specific target document:createInCurrentDocument.
Cross-Project Type Configuration
When loading task items from multiple projects with different work item types, configure both projects and types:When no explicit selection is made, the first project and type in the list are selected by default.
Context Menu Integration
Task link columns integrate with the Risksheet context menu. Users can:- Open Task Item - Right-click a task link to open the linked work item in Polarion
- New Task - Create new task items directly from the context menu (if
showInMenu: true) - Remove Task - Unlink a task from the current risk item (removes the relationship, does not delete the task)
dataTypes.task.name property for display.
Property Display and Sorting
Columns displaying task properties (viabindings: "task.<property>") inherit standard column behavior:
- Sortable - Rows can be sorted by task property values
- Filterable - Users can filter by task property values
- Read-Only - Most task property columns are read-only unless explicitly configured
- Formatting - Values are formatted according to their data type (dates, enums, etc.)
Configuration Properties Summary
| Use Case | Configuration Key | Value | Notes |
|---|---|---|---|
| Set column header text | header | string | Display name in grid header |
| Set task column ID | id | string | Used in bindings: task.* |
| Set task type | dataTypes.task.type | string or comma-separated | Supports single or multiple types |
| Set link role | dataTypes.task.role | string | Role name used for linking |
| Set task display name | dataTypes.task.name | string | Label shown in menus and UI |
| Load from specific document | dataTypes.task.document | string | Full path: "Folder/Document" |
| Load from specific project | dataTypes.task.project | string or comma-separated | Single or multiple projects |
| Filter tasks by query | dataTypes.task.query | string | Polarion query syntax |
| Create in current document | dataTypes.task.createInCurrentDocument | boolean | Version 23.1.0+ |
| Create in target document | dataTypes.task.createInDocument | string | Version 24.8.1+ |
| Display task title | bindings | "task.title" | Shows task name in column |
| Display task status | bindings | "task.status" | Shows workflow status |
| Display task type | bindings | "task.type" | Shows work item type (version 25.3.1+ for multi-project) |
Sources
Sources
KB Articles
- Configure downstream traceability columns (tasks, risk control measures)
- Display Sub-columns for multiItemLink columns
- Render column with custom data
SheetConstants.tsRemoveTaskCommand.tsRiskSheetContextMenu.tsCellEditorFormatter.tsRisksheetViewServlet.java