Understanding Multi-Level Hierarchies
A multi-level hierarchy occurs when you need to display:- Level 1: Properties from items directly linked to your risk item (e.g., System Requirements)
- Level 2: Properties from items linked to Level 1 items (e.g., Test Cases linked to those Requirements)
- Level 3: Properties from items linked to Level 2 items (and so on)
Configure Nested Linked Item Columns
Step 1: Define the First-Level Link Column
Start with a standard upstream traceability column:Step 2: Add Level 2 Nested Item Column
Use serverRender with bindings to access items linked to the Level 1 item:bindings: "sysReq.$item"— Access the linked System Requirement work item$sysReq.$item.fields().linkedWorkItems()— Get all items linked to that requirement#if($typeId.equals("testcase"))— Filter to show only Test Case work items
Step 3: Add Level 2 Property Columns
Display specific fields from Level 2 items in separate columns:Step 4: Add Level 3 Columns (Items Linked to Level 2)
For even deeper nesting, chain the bindings pattern:Multi-Level Hierarchy Configuration Pattern
| Level | Bindings Pattern | Access Path | Example |
|---|---|---|---|
| 1 | Direct link column | $item | System Requirement linked to Risk |
| 2 | firstLevel.$item | $firstLevel.$item.fields().linkedWorkItems() | Test Cases linked to Requirement |
| 3 | firstLevel.$item (nested loop) | Iterate Level 2, then .linkedWorkItems() | Test Results linked to Test Case |
Downstream Multi-Level Hierarchies
For downstream/backlink scenarios (showing items that link TO your linked items):linkedWorkItems:${reqRef.projectId()}/${reqRef.id()} finds all items linking to the Level 1 item.
Verification
After configuring multi-level hierarchy columns:- Reload the RISKSHEET
- Check Level 1 column — Should show directly linked items (e.g., System Requirements)
- Check Level 2 columns — Should display items linked to Level 1 items (e.g., Test Cases linked to each Requirement)
- Check Level 3 columns — Should show items linked to Level 2 items (e.g., Test Results)
- Verify ordering — Items should appear in consistent order (by ID if sorted)
- Test empty cases — Rows where Level 1 has no linked items should show empty Level 2/3 columns
See Also
- Configure Upstream Traceability Columns — Configure Level 1 linked items
- Display Sub-Columns — Show properties from linked items
- Render Custom Data — serverRender fundamentals
- Server Render Columns — Technical reference
- Velocity Templates — Velocity scripting guide
- Velocity Template Context — Available Velocity variables
- Configure Downstream Traceability Columns — Backlink configuration
- Show Multiple Linked Items — Multi-item link columns
Sources
Sources
KB Articles
- Display Sub-columns for multiItemLink columns
- Configure upstream column to show multiple linked work items
- What Work Items are visible on the Risksheet and understanding levels
risksheet.jsonPolarionAppConfigManager.javaAppConfig.tsCustomMergeManager.tsTextEditor.ts