Skip to main content

Use Case

Variant management enables teams managing multiple product configurations or releases to:
  • Filter Risksheet views to show only risks relevant to a specific release
  • Link mitigation tasks to the correct product variant
  • Maintain separate risk matrices for different configurations while sharing common work items
diagram

Configure Release Field

First, create a custom field in Polarion to track which releases apply to each work item.

Create Multi-Enum Field

  1. Navigate to Administration > Work Items > Custom Fields
  2. Create a new custom field:
    • Field ID: assignedReleases
    • Field Type: Multi-Enum
    • Allowed Values: Release_1.0, Release_2.0, Release_3.0, etc.
  3. Apply the field to relevant work item types (Risk, Mitigation, etc.)

Add Release Column to Risksheet

Add the release field to your risksheet.json:
{
  "header": "Assigned Releases",
  "bindings": "assignedReleases",
  "type": "multiEnum",
  "minWidth": 180,
  "level": 1
}
The bindings value must exactly match your Polarion custom field ID, including capitalization. Mismatches cause the column to appear empty.

Filter by Target Release

Currently, Nextedy RISKSHEET does not support automatic release-based filtering at the widget level. The workaround is to use branched documents or query-based scoping. Use Polarion’s document branching to create release-specific Risksheet documents:
  1. Create a baseline for each release (e.g., v1.0-baseline)
  2. Branch your Risksheet document from that baseline
  3. Each branched document automatically contains only the work items from that release snapshot
See Work with Branched Documents for complete setup instructions.

Option 2: Query Configuration

Use the query property in risksheet.json to filter work items by release:
{
  "query": "assignedReleases:Release_2.0",
  "dataTypes": {
    "risk": {
      "type": "risk",
      "role": "relates_to"
    }
  }
}
This approach filters the entire Risksheet to show only items tagged with Release_2.0.
Pass release filters via URL parameters to create dynamic views:
/polarion/#/project/MyProject/risksheet?query=assignedReleases:Release_3.0
See URL Parameters for details.

Known Limitations

LimitationImpactWorkaround
No widget-level release filteringCannot filter matrix by target release when document spans multiple releasesUse branched documents or query filtering
Hardcoded multiEnum supportRelease filtering only works with multiEnum fieldsEnsure assignedReleases is configured as multiEnum type
Cross-release link visibilityLinked items from other releases may appear in link columnsUse conditional rendering in serverRender columns to hide mismatched releases
If a single Risksheet document contains work items assigned to multiple releases, RISKSHEET cannot automatically scope the displayed matrix to one target release. Teams must either:
  1. Create separate Risksheet documents per release (recommended)
  2. Use query filtering to view one release at a time
  3. Wait for future RISKSHEET release with native variant filtering support
Filter linked items to show only those matching the current release:
{
  "header": "Mitigations (Filtered)",
  "bindings": "task.$item",
  "serverRender": "#set($targetRelease = 'Release_2.0')#foreach($task in $item.getLinkedWorkItems())#if($task.getCustomField('assignedReleases').contains($targetRelease))$task.getId() - $task.getTitle()<br/>#end#end"
}
This Velocity template:
  1. Sets $targetRelease to the desired release version
  2. Loops through linked work items
  3. Checks if assignedReleases contains the target release
  4. Renders only matching items

Verification

  1. Open your Risksheet document
  2. You should see the Assigned Releases column showing multi-select enum values
  3. If using query filtering, verify that only work items matching the query appear
  4. If using branched documents, verify that the branch contains only items from the baseline snapshot

See Also

Support TicketsSource Code
  • RisksheetProjectProperties.java
  • AppConfigParser.ts
  • PolarionAppConfigManager.java
  • RisksheetViewServlet.java
  • AppConfig.ts