Link Role Property
| Name | Type | Default | Description |
|---|---|---|---|
linkRole | string | None (required when storage: linkedWorkItems) | Polarion link role ID used to store the relationship. Must match a link role defined in the Polarion project configuration. |
How Link Roles Connect Domain Model to Polarion
Link Role Configuration in Relationships
ThelinkRole property appears in the relationships array of the domain model YAML:
Relationship Properties That Work With linkRole
| Name | Type | Default | Description |
|---|---|---|---|
from | string | None (required) | Source entity type name |
to | string | None (required) | Target entity type name |
cardinality | string | None (required) | Relationship multiplicity. See Cardinality |
storage | string | None (required) | Must be linkedWorkItems when using linkRole. See Storage |
linkRole | string | None (required) | Polarion link role ID |
direct | object | None | Forward navigation property definition |
back | object | None | Reverse navigation property definition |
fromNavPropName | string | None | Alternative to direct.name for forward navigation property |
toNavPropName | string | None | Alternative to back.name for reverse navigation property |
Common Link Role Examples
| Link Role ID | Typical Usage | From Entity | To Entity |
|---|---|---|---|
refines | Requirements refinement | UserNeed | SystemRequirement |
refines | Design decomposition | SystemRequirement | DesignRequirement |
verifies | Verification traceability | VerificationTestCase | SystemRequirement |
validates | Validation traceability | ValidationTestCase | UserNeed |
mitigates | Risk control traceability | RiskControl | Hazard |
relatesTo | External references | ExternalReference | DesignRequirement |
Configuring Link Roles in Polarion
Before using alinkRole value in the domain model, verify the link role exists in Polarion:
- Navigate to Administration > Work Item Link Roles
- Confirm the link role ID matches the value used in
linkRole - Verify the link role allows connections between the intended work item types
- Check if the link role is bidirectional (recommended for most traceability relationships)
Complete YAML Example
Related Pages
- Relationships — Relationship definition reference
- Storage — Storage mechanism options
- Cardinality — Relationship multiplicity
- Navigation Directions — Direct and back navigation properties
- Polarion Type Mapping — Entity type to work item type mapping
Sources
Sources
KB ArticlesSource Code
Relationship.javatodosBig_model.yamlprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints_create_only.yamltodos_model.yamlmodel.yaml