Prerequisites
- A working domain model with entity types and relationships defined
- Access to Administration > Nextedy POWERSHEET > Domain Models
- Knowledge of your Polarion document structure (module folders, document types, components)
Step 1: Identify the Target Entity Type
Open your domain model YAML and locate the entity type whose picker you want to filter. Pick constraints are defined on the target entity type — the type that appears in the dropdown when a user selects a related item. For example, to control whichSystemRequirement items appear when linking from a UserNeed, you add constraints to SystemRequirement:
Step 2: Add Pick Constraints
Add aconstraints section with a pick sub-section to the target entity type. The document property within pick controls filtering by document location:
Requirements folder that have the document type systemRequirementsSpec.
Step 3: Choose Filter Properties
Use the following properties insideconstraints.pick.document to narrow picker results:
| Property | Description | Example Value |
|---|---|---|
moduleFolder | Restricts to work items within a specific module folder (space) in the project hierarchy | "Requirements" |
moduleName | Restricts to work items within a specific document by exact name | "System Requirements" |
type | Restricts to documents of a specific document type | "systemRequirementsSpec" |
component | Restricts by document component property | "Braking" |
Step 4: Use Dynamic Context References
For component-scoped filtering, use$context.source.document.component to dynamically match the source entity’s component at runtime. This is especially useful in multi-component projects where each component maintains its own set of documents:
DesignRequirement from within a document whose component is “Braking”, the picker shows only design requirements from “Braking” documents. Switching to an “Engine” document automatically filters to “Engine” design requirements.
Step 5: Combine Multiple Filter Properties
You can specify multiple filter properties together. All conditions are applied as a logical AND — every condition must match for an item to appear in the picker:Hazard picker only shows items that satisfy all three conditions:
- Located in the
Risksmodule folder - In a document of type
hazardAnalysis - Belonging to the same component as the source document
Step 6: Configure Picker Search Fields
When a relationship column uses a picker, you can configure which fields are searchable in the dropdown. Add alist property to the column definition in your sheet configuration:
searchableFields array controls which entity properties the user can type to search and filter the picker dropdown. Common choices include title, id, and custom property names.
Step 7: Complete RTM Example
Here is a complete domain model excerpt demonstrating pick constraints across a requirements traceability hierarchy:Verify Your Configuration
After saving your domain model changes:- Reload the sheet in Polarion (refresh the page or re-open the document)
- Click a cell in a relationship column that references the constrained entity type
- The picker dropdown should now show only items matching your filter criteria
- If using
$context.source.document.component, verify that switching to a document with a different component changes the picker results accordingly
moduleFolder, type, moduleName, or component constraints.
See Also
- Configure Constraints — full overview of pick, load, and create constraint types
- Configure a Relationship — set up relationships between entity types
- Configure a Formatter — apply conditional styling to picker columns
- Add a Column — column configuration basics including
displayandlistproperties - Data Model Reference — complete domain model YAML reference
Sources — whole_rtm.template.yaml, PolarionQueryProcessor.java, ModelProvider.tsx