Prerequisites
- A powersheet document with at least two entity types connected by a relationship in the domain model
- The relationship must be defined with a valid
linkRoleandstorage: linkedWorkItems - Your user account must have permissions to create links between the target work item types
Step 1: Define the Relationship in the Domain Model
Before linking, ensure your domain model has the relationship configured:systemRequirements on UserNeed and userNeeds on SystemRequirement.
Step 2: Enter Linking Mode
There are two methods to create links in Powersheet:Method A: Use the Link Command
- Select a cell in the source row (the entity you want to link from)
- Click the Link button in the toolbar to activate linking mode
- The source row becomes read-only and the sheet switches to row-selection mode
- A visual indicator (CSS class
ltc-mode--link) highlights that linking mode is active
Method B: Use the Picker in a Multi-Item Column
For many-to-many columns, double-click the cell to open the entity picker:- The picker dropdown shows available target entities
- Use the search field to filter entities by title or ID
- Select an entity from the list to create the association
Step 3: Select the Target
In linking mode (Method A), click on the target row to establish the link. The sheet validates that:- The target entity type matches the relationship definition
- The link does not duplicate an existing association
- The link is not self-referencing (source and target are different entities)
Step 4: Unlink Entities (Optional)
To remove an existing link without deleting the work items:- Locate the linked entity in the multi-item column
- Click the Unlink button next to the entity
- The association is marked for deletion but both entities remain intact
Step 5: Save
Click Save to persist the new links to Polarion. The save operation creates the appropriate link role associations in Polarion’s work item linking system.Step 6: Verify
You should now see the linked entity displayed in the corresponding multi-item column. If your sheet uses expansion paths, the linked entity also appears in the hierarchical tree structure.Open the source work item in Polarion and check the Linked Work Items section to confirm the link role and target are correct.
See Also
- Create Bidirectional Links — configure two-way navigation properties
- Configure Many-to-Many Relationships — set up association entities
- Configure a Relationship — define relationships in the domain model
- Handle Validation Errors — resolve link-related errors during save
Sources
Sources
Source Code
prod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/commands/index.tsprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/SheetComponent.tsxprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/cypress/e2e/Sheet/parameters-in-document.spec.tsprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/sheet/commands/link.tsprod-powersheet-src/com.nextedy.powersheet.client/cypress/fixtures/models/constraints-base.yaml