Before You Start
You will need:- A Risksheet document with an existing sheet configuration (risksheet.json), edited through the configuration editor (YAML supported since v25.5.0)
- Administrator access to the project (to modify the sheet configuration)
- For dynamic visibility: the ability to create or edit a Polarion wiki page in the project
Visual Structure
The grid renders a two-level column header when one or more columns share the sameheaderGroup value. Row 0 of the header shows the group name; row 1 shows individual column headers.
Group Columns Under a Shared Header
Add the The group span is determined automatically by consecutive columns sharing the same
headerGroup property to every column that should appear under the same parent label. All columns sharing that exact string become sub-columns of the group.headerGroup string. Place the columns next to each other in the columns array — non-adjacent columns with the same group name will not merge into a single header span.Increase Header Height for Multi-Line Labels
When sub-column headers contain longer text (for example, “Occurrence after mitigation”), the default header height truncates the label. Increase header height through the The default column header height is 32 pixels. Setting
headers section so headers wrap into multiple lines.columnHeader.height to 48 or 64 pixels allows two or three lines of text to wrap. The columnGroupHeader.height controls the upper row that shows the group label — keep it small unless you are also wrapping group names.Tune Column Widths
Header text wrapping depends on column width as well as header height. A narrow column with a long header still truncates even when header height is increased. Set For the last visible column, the grid automatically adjusts width by a few pixels to account for scrollbar presence, so you do not need to compensate manually.
width per column to give the header enough horizontal room.Make Sub-Columns Dynamically Visible
To enable users to enable, disable, or rename sub-columns without editing the sheet configuration directly, combine the standard Then add a wiki page script block in the project’s wiki (Documents and Pages) that flips the
visible column property with a Polarion wiki page that overrides values at runtime.First, define the sub-columns in the sheet configuration as you normally would, including the headerGroup:visible property and overrides the header text for each column at load time. The columns you enable inherit their position and header group from the first configured column in the group, keeping the grouped sub-column layout intact.Hide and Show via Saved Views
For users who need to switch between full and condensed sub-column layouts at runtime, define Saved Views instead of toggling The
visible. Views use columnIds (note the plural) to declare which columns are shown:@all token includes every column; the -columnId prefix excludes specific columns from that set. Users switch views from the toolbar without changing the underlying sheet configuration.Verification
You should now see:- A two-level header in the grid: the
headerGrouplabel across the top, with each sub-column header listed beneath it - Multi-line header text wrapping correctly within the configured
columnHeader.height - Sub-columns aligned in the expected order under their parent group
- If you configured saved views, a view switcher in the toolbar that toggles which sub-columns are visible
- If you configured the wiki-page column builder, sub-columns turning on or off based on the wiki configuration when the document opens
columnHeader.height was saved (close and reopen the document — header changes apply on reload) and that columns sharing a headerGroup are placed consecutively in the columns array.