Step 1: Open the Domain Model
- Navigate to Administration > Nextedy POWERSHEET > Domain Models
- Select the domain model to edit
- Locate the
relationshipssection at the bottom of the YAML
Step 2: Define a Bidirectional Relationship
Each relationship in therelationships array creates navigation properties on both entity types. Define direct (forward) and back (reverse) navigation properties:
systemRequirementsonUserNeed— navigate forward to linkedSystemRequirementitemsuserNeedsonSystemRequirement— navigate back to the parentUserNeeditems
Step 3: Understand Required Properties
Each relationship requires these properties:| Property | Description | Example |
|---|---|---|
from | Source entity type (must match a domainModelTypes key) | UserNeed |
to | Target entity type (must match a domainModelTypes key) | SystemRequirement |
cardinality | Relationship multiplicity | one-to-many |
storage | Polarion persistence mechanism | linkedWorkItems |
linkRole | Polarion link role ID | refines |
direct.name | Forward navigation property name | systemRequirements |
back.name | Reverse navigation property name | userNeeds |
Step 4: Build a Multi-Level Hierarchy
Chain multiple bidirectional relationships to create a full RTM hierarchy:back property on each relationship lets you traverse the hierarchy upward from any level.
Step 5: Use Navigation Properties in Columns
Once bidirectional links are defined, reference them in your sheet configuration using binding paths:Step 6: Configure Expansion Paths in Sources
Ensure thesources section expands the bidirectional relationships for data loading:
Verify
After saving the domain model and sheet configuration, open your powersheet document. You should now see:- Forward navigation: expanding a
UserNeedrow shows linkedSystemRequirementitems - Back navigation: the reverse property names are available for column bindings and queries
- Multi-level expansion works across the full hierarchy chain
See Also
- Configure a Relationship — relationship basics and cardinality options
- Configure Many-to-Many Relationships — set up many-to-many links
- Configure Sources — configure expansion paths in sheet configuration
- Expand Navigation Properties — query-level expansion
Source reference
Source reference
model.yaml, rtm_model.yaml, todosBig_model.yaml, Relationship.java
Sources
Sources
KB ArticlesSupport TicketsSource Code
todosBig_model.yamlDomainModelV2.javaprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/commands/link.tsrtm_model.yamltodos_model.yaml