Skip to main content
See also: Relationships | Navigation Directions | Cardinality
The linkRole value must exactly match a link role ID defined in your Polarion project under Administration > Work Item Link Roles. A mismatch causes the relationship to fail silently — no linked items will appear in the sheet, and no error is displayed to the user.
diagram
The link role is the bridge between the data model’s abstract relationship definition and Polarion’s concrete work item linking infrastructure. At runtime:
  • Read operations: Powersheet queries Polarion for work items connected via the specified link role, then populates the sheet with the results.
  • Write operations: When users create or remove links in the sheet, Powersheet uses the same link role to persist changes to Polarion.

Where linkRole Appears in Configuration

The linkRole property is specified on each entry in the relationships array of the data model YAML. It sits alongside the structural properties (from, to, cardinality, storage) and the navigation direction definitions (direct, back).

Context Within the Relationship

A Polarion link role is inherently directional: it has a “from” side and a “to” side. The data model’s from/to entity types and direct/back navigation properties align with this directionality. The isBacklink flag is managed internally by the system. When Powersheet processes a back direction, it internally flags the reverse traversal so that Polarion queries use the correct link direction.
A single linkRole value serves both the direct and back navigation properties. You do not need to define separate link roles for forward and reverse traversal. Powersheet handles the directionality automatically based on the direct/back configuration.
The linkRole itself does not encode cardinality — it is a simple identifier pointing to a Polarion link role. Cardinality is controlled separately by the cardinality property. However, the combination of linkRole and cardinality determines the runtime behavior: See Cardinality for the full reference on each value and its effects across model, source, and column layers. A single Polarion link role can appear in multiple relationships. This is common when the same semantic relationship type applies to different entity type pairs.
In this example, the decomposes link role is reused across two relationship definitions. Each relationship has its own from/to pairing and its own navigation property names, but they share the same underlying Polarion link role.
When reusing a link role across multiple relationships, ensure the navigation property names (direct.name and back.name) do not collide on the same entity type. Each entity type must have uniquely named navigation properties.

Permission Control on Relationships

Relationships support permission flags that control whether the link role’s operations are available through the sheet: Individual navigation properties (direct and back) can also have independent permission settings, allowing fine-grained control over which direction of a link role is editable or visible.
For detailed property-level permission configuration, see Permissions.

Validation Rules

Powersheet enforces specific rules when processing linkRole values:
Link role IDs in Polarion are case-sensitive. A linkRole: Refines value will not match a Polarion link role with ID refines. Always verify the exact casing in Administration > Work Item Link Roles.

Complete YAML Example

A minimal data model demonstrating linkRole across different relationship types:
This model demonstrates two different link roles:
  • parent for the hierarchical UserNeed to Chapter relationship (many-to-one)
  • decomposes for the traceability SystemRequirement to UserNeed relationship (many-to-many)
Each relationship uses storage: linkedWorkItems and defines both direct and back navigation properties for bidirectional traversal.
Last modified on July 10, 2026