Prerequisites
- A powersheet document containing at least two entity types connected by a relationship in the data model
- The relationship must define a valid
linkRolewithstorage: linkedWorkItems - Your Polarion account must have permissions to create links between the relevant work item types
Confirm the Data Model Relationship
Before you can link entities, the data model must define the relationship between them. Open your data model YAML and verify the relationship exists:
The
| Property | Purpose |
|---|---|
from / to | The two entity types being connected |
cardinality | Relationship type (many-to-many, one-to-many, or one-to-one) |
storage | Must be linkedWorkItems to use Polarion link roles |
linkRole | The Polarion link role that stores the association |
direct | Navigation property name on the from entity |
back | Navigation property name on the to entity |
direct and back properties create bidirectional navigation. In this example, a UserNeed entity exposes a systemRequirements navigation property, while each SystemRequirement exposes a userNeeds navigation property pointing back.Verify Column Configuration
To link entities visually, your sheet configuration needs a column that displays the navigation property. This is typically a multi-item column bound to the relationship:The binding path uses dot notation: the navigation property name (
systemRequirements) followed by the target entity type in camelCase (systemRequirement). This column displays linked entities and provides the picker interface for creating new associations.Enter Linking Mode
Powersheet offers two methods to create links between entities:
Method A: Toolbar Link Command
- Select a cell in the source row (the entity you want to link from)
- Click the Link button in the toolbar
- The sheet enters linking mode — the source row becomes highlighted and the sheet switches to row-selection mode
- A visual indicator on the sheet confirms that linking mode is active
Method B: Entity Picker in a Multi-Item Column
For many-to-many relationships, use the inline picker:- Double-click the multi-item cell in the source row
- The picker dropdown appears showing available target entities
- Use the search field to filter entities by title or ID
- Click an entity from the list to create the association immediately
Select the Target Entity
When using the toolbar link command (Method A), click the target row to establish the link. Powersheet validates the operation before creating the association:
- The target entity type must match the relationship definition in the data model
- Duplicate links between the same two entities are prevented
- Self-referencing links (linking an entity to itself) are blocked
Review Changes Before Saving
Before persisting the link, review your changes using Powersheet’s review mode:
- Click the Review button in the toolbar to filter the sheet to only rows with pending changes
- Modified rows display a change indicator on the row header
- The review mode filter shows a count of changed rows (format:
N/M rows) - Use the dropdown menu to filter specifically by Changed rows or Added items
Unlink Entities (Optional)
To remove an existing link without deleting either work item:
- Locate the linked entity in the multi-item column
- Click the Unlink action (
) next to the entity name - The association is marked for removal — both work items remain intact in Polarion
Save the Changes
Click 💾 Save to persist the new links to Polarion. During the save operation:
- The sheet temporarily enters a read-only state to prevent concurrent edits
- Entities are saved in topologically sorted order — parent entities and dependencies are persisted first to ensure referential integrity
- The save operation creates the appropriate link role associations in Polarion’s work item linking system
- On success, the undo stack is cleared and the sheet returns to its normal editable state
Verify the Link
You should now see the linked entity displayed in the corresponding multi-item column. To confirm the link was created correctly:
- In Powersheet: Expand the source entity’s expansion path to see the linked target entity in the hierarchy
- In Polarion: Open the source work item and check the Linked Work Items section — the target should appear under the configured link role (e.g.,
requires) - Bidirectional check: Open the target work item in Polarion and verify the back-link appears under the reverse link role
Constrained Linking
When your data model includes constraints (such asapplyCurrentDocumentTo), Powersheet automatically scopes new links to the current document context. This means:
- The entity picker only shows entities from matching document types
- New entities created during the linking workflow inherit the document scope
- Multi-level constraints filter through the entire expansion path
SystemRequirement entities are constrained to a specific document type, the picker when linking from a UserNeed only shows system requirements from the correct requirements document.
Constraint behavior depends on your specific data model and project configuration. Test linking with constraints in a sandbox project before deploying to production.
See Also
- Configure a Relationship — set up the data model relationship that enables linking
- Create Bidirectional Links — configure
directandbacknavigation properties - Configure Many-to-Many Relationships — advanced many-to-many relationship setup
- Configure Multi-Item Column — set up the column that displays linked entities
- Handle Validation Errors — troubleshoot errors during save operations
- Configure Constraints — document-scoping and picker filtering rules