Prerequisites
- Branching support enabled in your Polarion environment
- Polarion administrator access for custom field configuration
- Familiarity with Polarion document branching and release management
How Variant Management Works
Risksheet supports variant management through branched documents combined with release-based filtering. A base project contains the master risk analysis, while variant projects branch from it for specific product releases. Each variant filters downstream items by anassignedReleases document custom field, showing only the mitigation tasks and controls relevant to that release.
Step 1: Enable Branching Support
Variant management builds on Risksheet’s branching capabilities. Ensure the branching property is set in your Polarion system configuration:Step 2: Set Up the Release Custom Field
Create a document-level custom field to track which product release each risk document belongs to:- Navigate to Administration > Document Configuration > Custom Fields
- Create a custom field named
assignedReleasesof typemultiEnum - Define your release values (e.g.,
v1.0,v2.0,v3.0) - Apply the field to your risk analysis document types
The
assignedReleases field is used to filter downstream items by release version. Verify the exact field name and type supported in your Polarion environment.Step 3: Create a Variant Project Structure
For complex variant management, set up a dedicated project structure:- Keep your base project with the master risk analysis documents
- Create variant projects by branching the base project for each release
- Assign the appropriate release value to each branched document using the
assignedReleasesfield
Step 4: Configure Release-Based Filtering
In the variant project’s Risksheet configuration, set up downstream item filtering based on the assigned release. TheassignedReleases document custom field controls which downstream items appear in the Risksheet view for each release.
Step 5: Scope Items to Documents
Use thedocument property in your dataTypes configuration to restrict linked items to specific LiveDocs, preventing the Risksheet from showing mitigation tasks from other documents or releases:
createInCurrentDocument to control whether new upstream items are stored in the current document rather than a shared location. This keeps variant-specific items scoped to the correct release context.
Step 6: Handle Overwritten Items in Variants
When working with branched variant documents, you may need to modify items originally inherited from the base project:- Right-click the referenced item in the Risksheet grid
- Select Overwrite Row Item from the context menu
- The item changes from
referencetype tooverwrite, becoming a local editable copy
systemReferenceType is reference. After overwriting, the item can be edited independently of the base project version.
Known Limitations
| Limitation | Workaround |
|---|---|
| Multi-release document filtering not available | Assign one release per document, or use separate LiveDocs |
| Overwriting removes all links except “is branched from” | Custom script to restore backlinks |
| Release field currently hardcoded to multiEnum | Assign only one release per document |
| Cache may become stale after branching | Clear Polarion cache after branching operations |
Verification
After setting up variant management:- Open a branched variant document in Risksheet
- You should now see only downstream items filtered by the assigned release
- Referenced items from the base project should display as read-only
- Overwriting an item should create a local editable copy in the variant
- Verify that new items created in the variant are scoped to the correct document
See Also
- Work with Branched Documents — enable and configure branching support
- Configure Cross-Project Linking — link work items across variant projects
- Configure Downstream Tasks — set up mitigation task traceability
- Use Project Templates — integrate Risksheet with custom project templates
- Configure Queries — customize data queries for variant filtering