Prerequisites
- Administrator access to edit
risksheet.json - Familiarity with basic column configuration
Approach Overview
Risksheet provides three approaches for making content clickable in grid cells. Choose the one that fits your use case:| Approach | Configuration | Editable | Best For |
|---|---|---|---|
| Rich text field rendering | serverRender with .render().htmlFor().forFrame() | No (read-only) | Fields that already contain HTML links |
| Custom redirect link | serverRender with HTML <a> tag | No (read-only) | Navigating to Polarion pages or external URLs |
| Context menu navigation | No configuration needed | N/A | Quick access to linked work items |
Render Rich Text Field Links
If the work item field contains rich text with embedded hyperlinks (for example, a description field with<a href="..."> tags), use the Velocity rendering API to preserve the HTML and make links clickable:
description field, including clickable links, bold/italic formatting, lists, and embedded images. The .htmlFor().forFrame() method chain ensures the content is rendered safely within the Risksheet grid frame.
For other rich text fields (not description), use the generic get() method with the field ID:
Construct Custom Redirect Links
To create a clickable link that navigates to a specific Polarion page or external URL based on a field value, construct an HTML anchor tag in the Velocity script.Link to a Polarion Wiki Page
Link to an External URL from a Field Value
If the work item stores a URL in a custom field, render it as a clickable link with a null-check to handle empty values:externalUrl field has a value. If the field is populated, it renders a clickable link. If the field is empty, it displays a dash placeholder.
Link to Another Work Item by ID
To create a link that opens a related work item in Polarion:Advanced: Conditional Link Rendering
You can combine Velocity conditionals with link rendering to display different content based on field values:Context Menu Navigation (No Configuration Needed)
Even withoutserverRender configuration, users can navigate to linked items using the right-click context menu on any grid cell:
| Menu Option | Available When | Action |
|---|---|---|
| Open Row Item | Always available | Opens the current row’s work item in the Polarion item editor |
| Open Linked Item | Cell contains a valid item link (not a new unsaved * item) | Opens the linked work item; label derived from level definition or column header |
| Open Task Item | Cell contains a task link | Opens the task work item; label uses dataTypes.task.name if configured |
serverRender configuration and work with standard itemLink, multiItemLink, and taskLink column types.
Export Behavior for Server-Rendered Columns
Server-rendered columns export differently from standard editable columns. Be aware of these differences when users export to Excel or PDF:| Export Format | Behavior |
|---|---|
| Excel | HTML content is stripped to plain text. List structures (<li> elements) are converted to newline-separated text. Anchor tags are removed, leaving only the link text. |
| HTML content is converted to plain text. Clickable links are not preserved in the PDF output. |
Troubleshooting
Links are not clickable — Verify the Velocity expression produces valid HTML anchor tags. Open browser developer tools (F12), inspect the cell element, and check whether the rendered output contains<a href="..."> tags. If the cell shows plain text instead of a link, the serverRender expression may have a syntax error.
Column shows raw Velocity syntax instead of rendered content — This indicates a Velocity parsing error. Common causes include:
- Missing
#endfor#ifor#foreachblocks - Unclosed string literals (mismatched quotes)
- Incorrect variable references (variables must start with
$) - Field name mismatch (the field ID in
get('fieldName')does not exist on the work item type)
itemLink or multiItemLink columns, the work item you are trying to link is already associated with the current row. The editor enforces uniqueness to prevent duplicate references.
Verification
After saving yourrisksheet.json changes:
- Reload the Risksheet page in your browser
- Locate the column you configured with
serverRender - You should now see clickable links in the configured column — the text should appear as blue underlined hyperlinks
- Click a link to confirm it opens the correct target in a new browser tab
- Right-click a different cell and verify the context menu shows “Open Row Item” as expected
See Also
- Render Custom Data — comprehensive server render patterns
- Customize Link Rendering — control how linked item references display
- Work with Rich Text Fields — rich text field handling in the grid
- Consolidate Multiple Link Columns — combining link columns into one
- Configure Upstream Traceability Columns — upstream link configuration
- Show Multiple Linked Items — displaying multiple references per cell
Sources
Sources
KB Articles
- Collect multiple link columns into one column
- Customize the way Item Links are rendered
- Enable editing of read-only up-stream columns
PolarionAppConfigManager.javaAppConfig.tsCellEditorFormatter.tsRiskSheetContextMenu.tsrisksheet.json