Entity Types: The Building Blocks
An entity type represents a category of work item in your engineering process. In the domain model YAML, entity types are declared under thedomainModelTypes section. Each entity type maps to one or more Polarion work item types and defines which properties (fields) are visible in the sheet.
| Property | Purpose |
|---|---|
polarionType | Maps the domain entity to a Polarion work item type ID. If omitted, the entity type name is used as the Polarion type. |
properties | Declares which Polarion fields are exposed. Each key maps to a work item custom field or built-in field. null values use default configuration. |
constraints | Optional rules for load, create, and pick behavior (see Process Constraints). |
Built-in Entity Types
Powersheet automatically provides two built-in entity types that do not need to be explicitly declared:Document— Represents Polarion documents (LiveDoc modules). Not a work item type, but a container for work items. Exposes properties likemoduleNameandtitle.Chapter— Represents Polarion headings (document structure elements).
Multiple Polarion Types per Entity
A single entity type can map to multiple Polarion work item types. ThepolarionType property accepts either a single string or an array:
Relationships: The Connections
Relationships define how entity types connect to each other. Each relationship creates navigation properties on both the source and target entity types, enabling bidirectional traversal in the sheet.Relationship Properties
| Property | Type | Description |
|---|---|---|
from | string | Source entity type name. Must match a key in domainModelTypes. |
to | string | Target entity type name. Must match a key in domainModelTypes. |
cardinality | string | Multiplicity: one-to-one, many-to-one, one-to-many, or many-to-many. |
storage | string | How the link is persisted. Typically linkedWorkItems (Polarion native links). |
linkRole | string | Polarion link role ID used to store the relationship. |
fromNavPropName | string | Navigation property name added to the source entity for forward traversal. |
toNavPropName | string | Navigation property name added to the target entity for reverse traversal. |
Alternative Relationship Syntax
Some domain model formats usedirect and back objects instead of fromNavPropName and toNavPropName:
Relationships Enable Expansion Paths
Once relationships are defined, they enable expansion paths in the sheet configuration. Column binding paths traverse the relationship chain:systemRequirements navigation property, enters the systemRequirement entity, and accesses its title field. For more on this, see Navigation Properties and Hierarchy and Traceability.
Related Pages
- Link Cardinality — Deep dive into cardinality options and their UI impact
- Process Constraints — Additional scoping rules for entity types
- Data Model vs Sheet Configuration — Where entity types fit in the configuration layers
- Creating Your First Data Model — Tutorial for building your first domain model
Sources
Sources
Source Code
prod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints-base.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints_create_only.yamlmodel.yamlriskmanagement_model.yamlrtm_model.yaml