Why Traceability Matters in Risk Analysis
In a typical FMEA or HARA workflow, a risk item does not exist in isolation. It traces back to the requirement, safety goal, or system function that introduced the hazard, and it traces forward to the mitigation actions, test cases, or control measures that reduce the risk. Without these links, you cannot answer fundamental audit questions:- Which requirements are addressed by this risk assessment?
- What mitigations have been implemented for this hazard?
- If a requirement changes, which risk items need to be reassessed?
- Is every identified hazard covered by at least one mitigation?
How Linking Works
Risksheet uses Polarion work item links as its traceability mechanism. When you link a risk item to an upstream requirement or a downstream mitigation task, Risksheet creates a standard Polarion link with a configured role. The linking architecture supports three directions:- Upstream links connect risk items to their source elements (requirements, safety goals, hazards, system functions) through
itemLinkandmultiItemLinkcolumns. - Downstream links connect risk items to mitigation actions, verification tasks, or control measures through
taskLinkcolumns. - Cross-item chains connect upstream items to each other through the
nextedy.risksheet.upstreamChainsproperty, creating indirect relationships via the common risk item.
addresses, mitigates, verifies), which means the same relationships appear in Polarion’s built-in traceability matrix, impact analysis, and document comparison views.
Upstream Traceability
Upstream columns display work items linked to the risk item through a specified role. These links answer the question “what is this risk related to?” — for example, which requirement introduced the hazard, which system component is affected, or which safety goal this risk item supports.Single Item Links vs. Multiple Item Links
Risksheet supports two styles of upstream linking:| Link Type | Column Type | Use Case |
|---|---|---|
| Single item | itemLink | One-to-one relationships: one risk item traces to exactly one requirement |
| Multiple items | multiItemLink | One-to-many relationships: one risk item traces to several safety goals or components |
The Item Suggester
When creating or editing upstream links, Risksheet provides an autocomplete suggester that searches for matching work items. The suggester behavior is configurable at the project level:| Setting | Default | Description |
|---|---|---|
| Fuzzy search | true | Matches items even with slight spelling variations or typos |
| Wildcard search | true | Supports * and ? wildcard characters in search queries |
| Result limit | 20 | Maximum number of suggestions displayed at once |
| Keyword mandatory | false | Whether users must provide search keywords before results appear |
| All-field search | false | Searches all fields of linked items instead of just primary fields |
Loading Upstream Items from Other Documents
Upstream items can reside in any Polarion document or project. The Risksheet loads them based on the link role and work item type configuration. This cross-document linking is fundamental to multi-level risk analysis architectures where, for example, system-level safety goals live in one document while component-level FMEAs live in another.Downstream Traceability
Downstream columns display mitigation tasks, control measures, or verification activities linked to the risk item. While upstream traceability answers “what causes this risk?”, downstream traceability answers “what are we doing about it?”How Downstream Items Are Retrieved
The downstream trace provider retrieves linked work items using several filtering mechanisms applied in sequence:-
Role-based filtering — Tasks are retrieved based on the link role configured in
dataTypes.task.role. If multiple roles are specified (comma-separated), the role filter is disabled and all linked items of the matching type are retrieved regardless of link role. -
Type-based filtering — Only work items matching the types configured in
dataTypes.task.typeappear as downstream items. This ensures that only relevant work item types (e.g.,MitigationAction,VerificationTask) are shown. -
Custom query filtering — Additional Polarion queries can further filter which tasks appear. This is controlled by the
nextedy.risksheet.applyQueryOnTasksproperty (default:true). Custom queries enable filtering by status, assignee, or other work item properties. -
Document-based loading — When
loadTasksFromDocumentis enabled, tasks are loaded from a specific document location rather than from work item links. This mode supports document-centric risk management workflows where tasks are organized in a separate document.
Sorting and Consistency
Downstream items are always sorted by local ID in ascending order (for example,TASK-1, TASK-2, TASK-10), regardless of the order in which links were created or retrieved. This provides predictable, consistent display across sessions and users.
Unresolvable Item Handling
The trace provider automatically excludes work items that cannot be resolved — items that have been deleted, moved to inaccessible projects, or are blocked by permission restrictions. The Risksheet silently filters these out, preventing broken references from appearing in the grid.Upstream Chain Building
Some risk analysis methodologies require direct relationships between upstream items. For example, in an ISO 26262 HARA, you might need a direct link between a Harm and a Hazardous Situation, even though both are independently linked to the same Risk Record. Thenextedy.risksheet.upstreamChains property enables automatic link creation between upstream items that share a common risk item. The format specifies a chain of fromType-linkRole-toType entries, comma-separated:
relatesTo link from the Harm to the Situation. Similarly, whenever a Situation and a Hazard are both linked to the same Risk Record, create a hasHazard link between them.
Revision-Based Traceability
Risksheet supports loading downstream items from specific document revisions or baselines, enabling historical traceability views. When viewing a historical revision, the system shows the tasks that were linked at that point in time, rather than the current state. The system uses either the work item revision or the document revision depending on configuration (isDownstreamFromRevision). This capability is essential for regulated environments where auditors need to verify the traceability state at a specific milestone or baseline — for example, confirming which mitigations were in place at the time of a design review.
Suspect Link Management
When changes are made to work items through Risksheet, Polarion’s suspect link mechanism can automatically mark related links as “suspect,” signaling that downstream or upstream items may need review. This behavior can be controlled:- Default behavior (auto-suspect enabled): Changes made in Risksheet trigger suspect link marking, following Polarion’s standard behavior.
- Auto-suspect disabled (
nextedy.risksheet.disableAutoSuspectset totrue): Changes made in Risksheet do not trigger suspect links. This may be desired for certain workflows where bulk edits in the grid should not cascade suspect notifications.
Non-Risk Use Cases
Although designed for risk management, Risksheet’s traceability system is flexible enough for other use cases. The grid can be configured with any Polarion work item type as the main row item and any type as upstream or downstream. For example:- Requirements Traceability Matrix (RTM): Use Requirements as main items with Test Cases as downstream items, providing a structured view of test coverage
- Functional Hazard Assessment (FHA): Use Functions as upstream items loaded from another document, with Failure Conditions created as downstream work items
Non-risk use cases require custom configuration of work item types in the
dataTypes section. The exact configuration steps depend on your project’s work item types and link roles. Risksheet does not require specific fields or work item types — it is fully configurable for any traceability scenario.Traceability in Exports
When exporting to PDF or Excel, traceability columns are included with appropriate formatting:- PDF export: Item links show the label property, multi-item links are rendered as comma-separated values, and server-rendered HTML is stripped to plain text. Downstream tables can be exported separately with deduplication logic.
- Excel export: Item link columns export as plain text, multi-item link columns export as newline-separated lists, and server-rendered columns preserve list structure.
Related Topics
- Work Item Visibility and Levels — how levels affect which linked items are visible on the grid
- Data Model and Work Items — the underlying data model for risk items and their relationships
- Configuration System — how
risksheet.jsoncontrols traceability behavior - Review Workflows — how review status interacts with traceability
- Configure Upstream Traceability Columns
- Configure Downstream Traceability Columns
- Configure Cross-Project Linking
- Show Multiple Linked Items
Sources
Sources
KB Articles
- Configure upstream traceability columns
- Configure downstream traceability columns tasks risk control measures
DefaultTraceProvider.javaRisksheetProjectProperties.javaAppConfigParser.tsExportToPdf.ts