Risksheet does not fully support editing rich text fields. The grid cell editor treats all content as plain text, which means HTML tags and formatting markup are stripped when you edit and save the cell. Because the save operation writes the edited plain text back to the Polarion work item XML, the formatting loss is permanent — the original HTML is overwritten.This behavior affects any field that Polarion stores as rich text (Text type), including description, custom rich text fields, and any field where users have added HTML formatting through the Polarion work item editor.
Once you edit and save a rich text field through the Risksheet grid, the original HTML formatting cannot be recovered. The plain text value replaces the rich text content in the Polarion work item. Always use one of the workarounds below before allowing users to edit rich text fields in the grid.
The recommended workaround is to configure the column as type text (multi-line text) instead of relying on rich text editing. This preserves line breaks without attempting to parse or render HTML formatting:
With type: "text", the field is treated as multi-line plain text. Line breaks entered in the cell editor are preserved on save, and the cell displays content with word wrapping enabled.
Setting the column type to "text" with multiLine: true and wordWrap: true is the recommended approach for description fields, notes, and any field where users need to enter paragraph-style content. This avoids the rich text stripping issue while still allowing structured multi-line input.
The following table compares the behavior of each configuration option:
If you need to display rich text content with full formatting but do not need users to edit the field inline, set the column to read-only with HTML content rendering:
Setting isContentHtml: true renders the HTML content in the cell, preserving bold text, lists, links, and other HTML elements. Setting isReadOnly: true prevents users from editing the content through the grid, which protects the original formatting from being stripped.Users who need to modify the field content can open the work item directly in the Polarion work item editor, where full rich text editing is available.
Step 3: Use Server-Rendered Columns for Complex Content
For fields that require complex HTML rendering with clickable links, images, or custom formatting logic, use server-rendered columns with Velocity templates:
Columns with serverRender are automatically set to type: "text" and readOnly: true. This approach gives you full control over the display via Velocity templates while protecting the underlying rich text content from accidental modification.
When exporting to Excel or PDF, rich text fields behave differently depending on column configuration. Ensure your chosen approach produces acceptable export output:
Column Type
Excel Export Behavior
PDF Export Behavior
type: "text"
Plain text with line breaks preserved
Plain text with line breaks
isContentHtml: true
HTML stripped, plain text extracted
HTML stripped, plain text extracted
serverRender
Server-rendered HTML converted to plain text; <li> elements become newline-separated entries
HTML content converted to plain text
There is a known issue where PDF export may truncate text in cells due to a cell height calculation regression (tracked as NPT-1237). If you notice truncated text in PDF exports of rich text or multi-line columns, this is a known bug with a fix planned at highest priority. Multi-page risks may also exhibit unwanted text repetition in PDF output.