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. For example, to filter whichSystemRequirement items appear when linking from a UserNeed:
Step 2: Add Pick Constraints
Add aconstraints.pick section to the target entity type. The document sub-property filters by document location:
Requirements folder with document type systemRequirementsSpec.
Step 3: Available Filter Properties
Use the following properties insideconstraints.pick.document to narrow picker results:
| Property | Description | Example |
|---|---|---|
moduleFolder | Restricts to a specific module folder (space) | "Requirements" |
moduleName | Restricts to a specific document by 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:
DesignRequirement, only items from the same component as the source document are shown.
Step 5: Combine Multiple Constraints
You can specify multiple filter properties together. All conditions are applied as an AND filter:Verification
After saving your domain model changes:- Open a powersheet document that uses this model
- Click on a cell in a relationship column for the constrained entity type
- You should now see only work items matching your filter criteria in the picker dropdown
- Verify that items from other folders, document types, or components are excluded
See Also
- Configure Constraints — full constraint configuration guide
- Configure a Relationship — set up entity relationships
- Use Model Helper Widget — visualize domain model structure
- Configure Sources — source expansion paths
Sources: Constraints.java, model.yaml, whole_rtm.template.yaml, wholeRTM.cy.ts
Sources
Sources
KB ArticlesSource Code
prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/configurations/whole_rtm.template.yamlprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsxmodel.yamlConstraints.javaprod-powersheet-src/com.nextedy.powersheet.client/cypress/e2e/userFlows/wholeRTM.cy.ts