Skip to main content

Define Levels in Configuration

Add a levels array to your sheet configuration. Each entry defines one visual tier of the hierarchy:

Assign Columns to Levels

Each column in your columns array specifies which level it belongs to. Columns at the same level merge vertically when their parent control column values match. Note that the column level property is 1-indexed: level: 1 maps to the first entry in the levels array.
Task columns (those bound to task.* fields) do not have a level assigned — they follow separate merge logic based on the parent risk item.
Two different levels must not point to the same controlColumn value. Duplicate control columns cause values from previous items to auto-populate into new items and trigger incorrect cell merging.

Understand Merge Behavior

Nextedy RISKSHEET automatically merges cells based on the levels hierarchy: Key merge rules:
  • Level 2 cells merge within the same level 1 group when their control column values match
  • Empty cells in control columns act as merge boundaries — they stop merge propagation between unrelated groups
  • Downstream and task columns follow separate merge rules based on work item ID grouping
If a level 1 control column cell is empty, level 2 and higher cells in that row will not merge with adjacent rows. This is intentional and maintains clean visual separation between hierarchy groups.

Display Multi-Level Linked Items

To display items linked across multiple levels, you have two approaches.

Approach A: Transitive Linking with upstreamChains

The upstreamChains property automatically builds transitive link chains across levels:
The format is fromType-linkRole-toType. This creates automatic transitive links so items connected through intermediate levels appear in the correct hierarchy.
The upstreamChains property only creates links — it never deletes them. Once a transitive link is established, it persists even if the intermediate link is removed.

Approach B: Server-Side Rendering for Read-Only Display

For read-only display of indirectly linked items, use serverRender with a Velocity script:
Columns with serverRender are automatically read-only and render on the server side.

Configure Sort Order for Hierarchies

Define the default sort order to align with your hierarchy using sortBy:
This ensures the grid rows are arranged to match the hierarchy structure, which is essential for proper cell merging.

Complete FMEA Hierarchy Example

A three-level FMEA configuration with System Element, Failure Mode, and Cause:

Troubleshooting

Verification

After configuring your levels hierarchy, you should now see:
  • Level 1 cells merging vertically when consecutive rows share the same system element
  • Level 2 cells merging within their parent level 1 group
  • The context menu showing “New Item” options for levels where showInMenu is true
  • Zoom navigation jumping to the column referenced by each level’s zoomColumn
  • Rows sorted according to the sortBy order, preserving the hierarchy structure

See Also

Last modified on July 10, 2026