When to Use Custom Data Rendering
Use custom data rendering when you need to:- Show work items linked to your linked items (multi-level relationships)
- Display filtered lists of related work items
- Format output as HTML lists or custom layouts
- Pull data that requires server-side queries or processing
Configure a Custom Data Column
Add a column with aserverRender property containing a Velocity script:
Understanding the Bindings Property
Thebindings property controls which work item becomes the $item context in your Velocity script:
For downstream items (tasks, mitigations):
Common Rendering Patterns
Display Rich Text Fields
Render Polarion rich text fields with preserved formatting:Show Filtered Linked Items
Display only specific types of linked work items:Query Related Items
Find items linked to your upstream work items:Visual Flow Example
Common Use Cases
| Use Case | Velocity Method |
|---|---|
| Display rich text with formatting | $item.fields().get("fieldId").render().htmlFor().forFrame() |
| Show linked item title with icon | $wi.render().withTitle().withIcon(true).withLinks().htmlFor().forFrame() |
| Render field value with icon | $wi.fields().severity().render().withIcon(true).htmlFor().forFrame() |
| Filter by work item type | #if($wi.fields().type().get().id().equals("requirement")) |
| Query linked items | $item.transaction().workItems().search().query("...") |
Verification
After adding your custom data column:- Refresh the RISKSHEET
- You should see your column displaying the rendered HTML content
- Verify that linked items or queried data appear as expected
- Check that HTML formatting (lists, links, styling) renders correctly
See Also
- Customize Link Rendering - Control how item links display
- Display Sub-Columns - Show properties from linked items
- Configure Upstream Traceability Columns - Set up upstream item links
- Velocity Templates - Full Velocity API reference
Sources
Sources
KB Articles
- Render column with custom data
- Show ID and Title of downstream items in one column
- Display Sub-columns for multiItemLink columns
- Customize the way Item Links are rendered
- Collect multiple link columns into one column
CellPreviewFormatter.tsExportToPdf.tsPolarionAppConfigManager.javaAppConfig.tsAppConfigHelper.ts