Structure
Relationships are defined as a top-level array in the data model YAML, alongsidedomainModelTypes:
from) to a target entity type (to), specifies a cardinality, a storage mechanism, a link role, and two navigation properties that allow traversal in both directions.
Relationship Properties
Navigation Properties
Every relationship creates navigation properties on the participating entity types. These properties enable:- Expansion paths in sheet source configurations
- Column bindings using dot-notation in sheet column definitions
- Query traversal across related entity types
direct and back objects:
UserNeedgains the navigation propertychapter(forward, to theChapterentity)Chaptergains the navigation propertyuserNeeds(reverse, back toUserNeedentities)
Naming Conventions
Cardinality Options
Thecardinality property determines how many entities can participate on each side of the relationship:
Cardinality affects three layers of configuration:
- Data model — determines navigation property type (scalar vs. collection)
- Sheet sources — determines expand pattern (single-level vs. two-level for M:N)
- Sheet columns — determines binding syntax and UI behavior (picker vs. child rows)
Storage
Thestorage property specifies how the relationship is persisted in Polarion.
The
linkedWorkItems storage mechanism is the only supported option. It leverages Polarion’s built-in linked work items infrastructure, which stores relationships as typed links between work items using the configured linkRole.Link Role Mapping
ThelinkRole value must correspond to a link role defined in the Polarion project configuration. Common link roles used in data models:
See Link Roles for detailed documentation on configuring and using Polarion link roles.
Permission Control
Relationships support permission flags that control CRUD operations through the sheet:Permission flag behavior may depend on your Polarion project permissions and Powersheet version. Test in your environment to confirm the exact behavior.
Navigation Properties in Binding Paths
Navigation property names created by relationships flow directly into sheet configuration. The three configuration layers — data model, sheet sources, and sheet columns — are connected through these navigation property names. The cardinality of the relationship determines the expand pattern and column binding syntax.Many-to-One (N:1)
A scalar reference from source to a single target entity. Uses thedirect navigation property.
Data model:
chapter— single-value reference picker (scalar navigation property, N:1)chapter.title— read-only display of the referencedChapter’s title via dot-notation
One-to-Many (1:N)
A collection of child entities accessible from a parent. Uses theback navigation property (reverse side of a many-to-one relationship).
Source configuration:
userNeeds— expands into child rows, creating a new level in the sheet hierarchy- No dot-notation needed; the expand directly opens the child level
Many-to-Many (M:N)
Collections on both sides, navigated through an association entity. Uses a two-level expand. Data model:- M:N relationships use an association entity between the two types
- Source expand is two levels:
systemRequirements(association) thensystemRequirement(target entity) - Column binding uses dot-notation:
systemRequirements.systemRequirement - Acts as a multi-item reference picker in the sheet UI
Cardinality Summary
Complete YAML Example
A full data model demonstrating all relationship cardinalities across the standard RTM entity types:Chapter > UserNeed > SystemRequirement > DesignRequirement > Hazard > RiskControl. Each relationship uses linkedWorkItems storage with an appropriate Polarion link role, and defines both direct and back navigation properties for bidirectional traversal.
Related Pages
- Cardinality — detailed rules for each cardinality option
- Link Roles — configuring Polarion link roles for relationships
- Data Model Types — entity type definitions referenced by
fromandto - Navigation Directions — how direction properties work internally
- Binding Syntax — using navigation properties in column bindings
- Sources — configuring expand paths that use navigation properties
- Constraints — filtering constraints applied to entity types in relationships