Risksheet provides limited support for Polarion rich text fields. Rich text content (HTML formatting, embedded images, clickable links) can be displayed read-only using server render columns.
Rich text fields can be displayed in two modes within the Risksheet grid. The choice depends on whether you need to preserve formatting or enable editing.
When a rich text field is bound to a standard column (without the serverRender property), the content is converted to plain text by the type conversion system:
Behavior
Description
Formatting stripped
All HTML tags are removed. Bold, italic, colors, lists, and tables are lost.
Links processed
Links embedded in the content are automatically processed for rendering, though they appear as plain text.
Text type
The column uses the text type, which supports multi-line plain text editing.
Editable
Plain text can be edited and saved back to Polarion. However, the original HTML formatting is permanently lost once saved from the grid.
Risksheet does not fully support editing rich text fields. Editing a rich text field through the grid may strip line breaks and HTML formatting from the work item XML, causing all text to appear concatenated. Use column type text (multi-line plain text) as the recommended alternative when editing capability is needed. For preserving formatting, use serverRender instead (read-only).
Use the serverRender property to display rich text with full HTML formatting. Server render columns execute a Velocity expression on the server to produce the HTML output:
Colors, bold, italic, underline, lists, tables, and other HTML formatting are preserved and rendered in the grid cell.
Clickable links
Hyperlinks within the rich text remain functional and can be clicked to navigate.
Embedded images
Images stored in rich text fields (diagrams, symbols, annotations) are displayed inline in the cell.
Read-only
Server render columns are always read-only. Content cannot be edited through the grid.
The serverRender property produces a read-only display. There is no way to edit rich text formatting from within the Risksheet grid. Users must edit rich text content in Polarion’s native work item editor, then refresh the Risksheet to see the updated content.
The serverRender property accepts Velocity expressions that are evaluated server-side. The following snippets are the standard patterns for rendering rich text fields.
The field ID used in $item.fields().get('...') must match the Polarion custom field ID exactly. Check your project’s custom field definitions in the Polarion administration panel, or see Field Mapping for details on how Polarion fields map to Risksheet columns.
Rich text fields with images are a commonly requested feature. The serverRender approach is the recommended method for displaying images in the grid. The images render at their original size within the cell, which may cause layout issues if images are large. See the section on controlling image display below for CSS-based sizing.
Velocity expression to execute server-side. The result HTML is rendered in the cell.
width
number
See application
Column width in pixels
level
number
1
Hierarchical level
headerGroup
string
None
Header group for multi-level column grouping
When using serverRender, the binding property is not required for the display itself — the Velocity expression retrieves the data directly. However, if the column needs to participate in sorting or filtering, a binding may still be useful.
Images rendered through serverRender may appear at their original dimensions, which can disrupt the grid layout. Control image sizing using CSS in the top panel template or via custom styles:
Approach
Description
CSS in Top Panel
Add CSS rules targeting img elements within server-rendered cells to limit max-width and max-height
Cell height configuration
Adjust row heights in the headers configuration to accommodate image dimensions
Custom renderer
Use a custom Velocity renderer that wraps images in a sized container
See the Top Panel Template reference for details on injecting custom CSS.
Text columns (non-server-render) support autocomplete suggestions when editing:
Property
Default
Description
settings.global.suggestTextFields
true
Enables autocomplete for text fields based on existing values
queryFactory
None
Custom JavaScript function to customize autocomplete suggestions
When suggestTextFields is enabled, the text editor shows suggestions based on existing values in the same column across all rows. This is useful for maintaining consistency in plain text descriptions but does not apply to server-rendered columns.
HTML is stripped to produce plain text content. The emptyPlaceholder property controls display for empty cells.
The exact rendering of rich text in PDF exports depends on your custom PDF export script configuration. Complex HTML content (tables within tables, deeply nested lists) may not render as expected in the plain text conversion.