What you will achieve
By the end of this tutorial you will have:- A working domain model with two entity types (
UserNeedandSystemRequirement) - A many-to-many relationship connecting the two entity types via a Polarion link role
- Navigation properties (
directandback) that you can reference in sheet configurations - A foundation you can extend with additional entity types like
DesignRequirement,Hazard, orRiskControl
This tutorial uses
UserNeed and SystemRequirement from the shipped RTM example model. In your own configuration, replace these with entity types that match your domain — for example, Hazard and RiskControl, or any names meaningful to your workflow.Prerequisites
- Powersheet installed and licensed (see Installing Powersheet)
- Navigation topic enabled (see Setting Up Navigation)
- At least two Polarion work item types configured in your project (e.g.,
userNeedandsystemRequirement) - A Polarion link role defined for connecting the two types (e.g.,
decomposes)
Step 1: Open the domain model administration
Navigate to Administration > Nextedy POWERSHEET > Domain Models. Click New to create a new domain model at the project level. Select System Default as the base and give your model a name (e.g.,rtm).
You should see: A new domain model file opens in the configuration editor with the default template content.
Step 2: Define entity types
Replace the content of the domain model with the following minimal YAML:domainModelTypes defines an entity type name. The polarionType property maps the entity type to a Polarion work item type. The properties section lists which work item fields are exposed for use in sheet configurations.
You should see: The YAML is accepted without errors in the editor.
Entity type names under
domainModelTypes must be single words with no spaces or special characters. PascalCase (e.g., UserNeed, SystemRequirement) is the recommended naming convention, but it is not enforced by the system. The important rule is that these names are used consistently throughout your configuration — in relationships, sources, and column bindings.Step 3: Define a relationship
Add therelationships section below the entity types. Relationships use direct and back properties to define forward and reverse navigation:
SystemRequirement to UserNeed, stored using the Polarion decomposes link role.
directcreates a navigation property on thefromentity (SystemRequirement). The nameuserNeedslets you navigate from a system requirement to its linked user needs.backcreates a reverse navigation property on thetoentity (UserNeed). The namesystemRequirementslets you navigate from a user need to its linked system requirements.
domainModelTypes and relationships sections.
Step 4: Review the complete model
Your complete domain model should look like this:direct.name and back.name values become the navigation properties you reference in your sheet configuration — in source expand paths and column bindings.
Step 5: Understand the connection to sheet configuration
The navigation properties you defined (userNeeds and systemRequirements) are the bridge between your domain model and your sheet configuration. Here is how they connect:
| Domain model property | Used in sheet configuration | Purpose |
|---|---|---|
direct.name: userNeeds | expand: - name: userNeeds | Expands system requirements to show linked user needs |
back.name: systemRequirements | expand: - name: systemRequirements | Expands user needs to show linked system requirements |
polarionType: userNeed | Resolved automatically | Maps entity to Polarion work item queries |
properties: description | columns: description: | Exposes field for column display |
Next steps
- Creating Your First Sheet Configuration — use the navigation properties from your domain model in column bindings
- Creating Your First Powersheet Document — embed your configured sheet in a Polarion LiveDoc
- Data Model Reference — full reference for
domainModelTypes,relationships,cardinality, andstorageoptions - Data Model Guides — add custom properties, set permissions, and extend your model