Prerequisites
Before configuring expansion paths, ensure you have:- A data model with entity types and relationships defined
- A sheet configuration with at least one source
- Familiarity with writing entity queries
How Expansion Connects Model, Source, and Columns
The three configuration layers — data model, sheet sources, and sheet columns — connect through navigation property names. The data model defines entity types and relationships. Sources define how to query and expand those relationships. Columns define how to display the resulting data. The cardinality of a relationship determines the expand pattern and the column binding syntax.Shared Data Model for Examples
All examples below use this data model:direct and back navigation direction. The direct side navigates from the from entity toward the to entity. The back side navigates in reverse.
1
Expand a Many-to-One Relationship (N:1)
Scenario: Each Then bind columns to the expanded entity:
UserNeed belongs to exactly one Chapter. Use the direct direction — the navigation property chapter (singular, scalar).Add the expand to your source configuration:chapter— renders a single-value reference picker (scalar navigation property)chapter.title— displays the referenced Chapter’s title as a read-only column
2
Expand a One-to-Many Relationship (1:N)
Scenario: Each
Chapter has multiple child UserNeed items. Use the back direction — the navigation property userNeeds (plural, collection).userNeeds— expands into child rows in the sheet, creating a new grid level- No dot-notation is needed; the expand directly opens the child level beneath each parent row
3
Expand a Many-to-Many Relationship (M:N)
Scenario: Column bindings use dot-notation to traverse both levels:
UserNeed items are linked to multiple SystemRequirement items and vice versa. Many-to-many relationships use an association entity between the two types.The source expand requires two levels — first to the association entity, then through to the target entity:systemRequirements— navigates to the association entitysystemRequirements.systemRequirement— navigates through to the targetSystemRequiremententity, acting as a multi-item reference pickersystemRequirements.systemRequirement.title— displays the target entity’s title
4
Build Deep Multi-Level Hierarchies
You can nest expansion paths to any depth. For a full requirements traceability matrix (RTM), chain expansions across multiple entity types:Each nested level adds another tier of child rows in the sheet. Columns at each level bind to their respective entity type properties.
5
Apply Document-Scoped Expansion
Constrain expanded entities to the current document by adding The
constraints to the source:applyCurrentDocumentTo constraint filters expanded SystemRequirement entities to only include those from the same Polarion document context. This is useful when your document contains a scoped subset of work items and you want expansions to respect that boundary.Cardinality Quick Reference
Common Pitfalls
Verify Your Configuration
After saving your sheet configuration:- Open the Polarion document that uses this sheet configuration
- You should now see nested rows under each parent entity corresponding to the expanded navigation properties
- For N:1 expansions, verify the reference picker column shows the correct related entity
- For 1:N expansions, verify child rows appear beneath each parent
- For M:N expansions, verify the dot-notation columns display target entity properties through both expand levels
See Also
- Write an Entity Query — basics of the
fromclause and query structure - Configure a Relationship — how to define relationships with
directandbacknames - Configure Many-to-Many Relationships — association entity setup for M:N links
- Create Bidirectional Links — linking entities in both directions
- Configure Multi-Item Column — column settings for collection bindings
- Configure Sources — full source configuration reference
- Optimize Queries — performance tips for deep expansion paths
- Filter by Document — apply document constraints to queries