What you will achieve
By the end of this tutorial you will have:- A working data 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 throughout, drawn from the shipped RTM example model. In your own configuration, replace UserNeed and SystemRequirement with entity types that match your domain — any names meaningful to your workflow (a risk-analysis model, for instance, might use Hazard and RiskControl instead).Prerequisites
- Nextedy Powersheet installed and licensed (see Installing Powersheet)
- Navigation topic enabled — this registers Powersheet as a routable page so your configured sheets are reachable from the project sidebar (see Setting Up Navigation)
- At least two Polarion work item types configured in your project (e.g.,
user_needandsys_req) - A Polarion link role defined for connecting the two types (e.g.,
decomposes)
Open the Data Models administration
Navigate to Administration > Nextedy Powersheet > Data Models.
The Data Models page lists existing models grouped by scope — Global models apply to all projects, while project-scoped sections (e.g., RTM w/ Components) hold models tied to a specific project.
Click New to create a new data model at the project level. Select System Default as the base and give your model a name (e.g., 
You should see: A new row is added to the Data Models list for your project. Click Open on that row to launch the configuration editor — it opens in a new browser tab, preloaded with the default template content.


rtm).
Saving a new model only adds a row to the Data Models list; it does not open the editor automatically. Click Open on the model row to launch the configuration editor in a separate browser tab, leaving the administration page open behind it. Save in the editor tab, then return to the administration tab to manage other models.

Define entity types
For this tutorial, set the data model content to the following minimal YAML (for a real project, add these definitions to the existing template rather than replacing it — see the warning in Step 1):Each key under 
You should see: The YAML is accepted without errors in the editor.
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.
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.Define a relationship
Add the This defines a many-to-many relationship from You should see: The complete model now has both
relationships 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.
The
decomposes link role and a SystemRequirement → UserNeed relationship are already present in the System Default template. If you kept that template instead of starting from the minimal YAML above, do not add a second definition — adjust the existing relationship’s direct/back names if needed rather than duplicating it.domainModelTypes and relationships sections.Review the complete model
Your complete data model should look like this:Save the model.You should see: The model saves without errors. The 

direct.name and back.name values become the navigation properties you reference in your sheet configuration — in source expand paths and column bindings.
Understand the connection to sheet configuration
The navigation properties you defined (
userNeeds and systemRequirements) are the bridge between your data model and your sheet configuration. Here is how they connect:| Data 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: user_need | Resolved automatically | Maps entity to Polarion work item queries |
properties: description | columns: description: | Exposes field for column display |
Refine with constraints (optional)
By default, an entity loads every matching work item in the project. Constraints let you scope that behavior per relationship, using three actions that each take a Polarion query:For the full syntax and worked examples, see Configure Constraints.
load(loadFromQueries) — where the entity’s items are loaded from (which items appear in the sheet).saveToQueries— where a new item is created when added through this relationship (for example, into a specific document or component). (This stage has no shortsavealias — the data-model editor rejects a baresave, unlikeloadandpick.)pick(pickFromQueries) — which items are offered in the item picker (the dropdown used to link existing items).
$context.source.document.component. You typically add a constraints block to a relationship once the basic model works; it is not required to get a sheet rendering.Next steps
- Creating Your First Sheet Configuration — use the navigation properties from your data 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