Overview
Polarion work items can contain rich text fields with HTML formatting, embedded images, and styled content. Risksheet supports displaying these fields read-only through server-side rendering with Velocity templates. Direct editing of rich text fields in the grid has limitations that require specific workarounds.Display a Rich Text Field
Add a column with theserverRender property using the Velocity expression that renders the field as HTML.
Step 1. Open your risksheet.json configuration file.
Step 2. Add a column with the serverRender property:
$item.fields().get('fieldID').render().htmlFor().forFrame() renders the full HTML content of the field, including images and formatting.
Step 3. Replace 'description' with the actual field ID of your rich text custom field. For example, for a custom field named testRichTextFieldID:
Columns with
serverRender are automatically set to readOnly: true. You do not need to add this property separately.Display Rich Text Fields with Images
Rich text fields that contain embedded images (such as symbol libraries or diagrams) require the sameserverRender approach, but with a specific binding configuration.
Step 1. Configure the column with serverRender as shown above.
Step 2. Ensure the bindings reference task.$item rather than a specific field binding:
| CSS Property | Effect |
|---|---|
max-width: 100% | Constrains image to column width |
max-height: 60px | Limits vertical space per image |
object-fit: contain | Preserves aspect ratio |
Use Plain Text as an Alternative
When you need editable multi-line text rather than formatted rich text, configure the column astype: "text" instead:
Column Type Comparison
| Approach | Editable | Formatting | Images | Use Case |
|---|---|---|---|---|
serverRender | ❌ No | Preserved | ✅ Yes | Display formatted reports, diagrams |
type: "text" | ✅ Yes | Stripped | ❌ No | Editable multi-line notes |
| Default (string) | ✅ Yes | Stripped | ❌ No | Short single-line text fields |
Verification
After saving your configuration changes, reload the Risksheet page. You should now see:- Rich text content displayed with full HTML formatting in the configured column
- Images rendered inline if the field contains embedded images
- The column is non-editable, indicated by the cursor not changing to an edit cursor on click
- Formatting such as bold text, colored text, and lists preserved from the Polarion work item
See Also
- Render Custom Data — configure custom rendering functions for columns
- Configure Cell Styles — apply visual styles to cells and columns
- Customize the Top Panel — add CSS and scripts via the TopPanel template
- Column Configuration — overview of all column configuration options
Sources
Sources
KB ArticlesSupport TicketsSource Code
CellEditorFormatter.tsGetSetUtil.javarisksheet.jsonPolarionAppConfigManager.javaAppConfig.ts