Skip to main content

Top-Level Structure

domainModelTypes is defined as a map where each key is the entity type name and the value is the type definition object:
The map key becomes the entity type name automatically. When the data model is loaded, Powersheet copies each map key into the corresponding type object so the name is consistently available regardless of how the type is accessed.
domainModelTypes must be a YAML map. Array format is not supported.

Entity Type Diagram

diagram

Entity Type Configuration Properties

Entity type names must be single words without spaces or special characters. Relationship from and to fields reference these entity type names — not Polarion work item type IDs. Using an invalid name causes configuration errors.
PascalCase (e.g., UserNeed, SystemRequirement) is a common convention for entity type names, but it is not a requirement. Names are case-sensitive.

name

The entity type name is the primary identifier used throughout the data model. It is set automatically from the YAML map key and does not need to be specified separately.
Entity type names are used in:
  • relationships[].from and relationships[].to to reference participating types
  • Sheet source query.from to identify the root entity type
  • Expansion paths to navigate between related entities
  • Metadata system queries for type-based filtering

pluralName

An optional plural form of the entity type name. When omitted, Powersheet auto-generates it using standard English pluralization rules.
The pluralName property has limited support in current versions. Auto-generated pluralization covers most standard English forms.

polarionType

Maps the data model entity to one or more Polarion work item types. This property is critical for Powersheet’s integration with Polarion — it determines which work items this entity type can represent. Single type mapping:
Multiple type mapping:
When multiple types are specified, the entity type matches work items of any of the listed Polarion types. This enables a single entity type to aggregate work items across multiple Polarion types. See Polarion Type Mapping for details on type resolution.

polarionProto

Specifies the Polarion prototype (object type) this entity maps to. Most entity types use the default work item prototype and do not need to set this property.

properties

Defines which fields are available on this entity type. Properties are declared as a map where the key is the property name.
An empty value after the property name declares the property with all default settings. To customize a property, provide a configuration object:
Properties must be declared as a YAML map. Array format (using - name: syntax) is not supported.
Properties can represent:
  • Polarion built-in fields — standard work item fields like title, description, severity
  • Custom fields — Polarion custom fields identified by customFieldName
  • Virtual properties — properties not backed by any Polarion field, commonly used as targets for server rendering or computed display columns
For detailed property configuration including serverName, customFieldName, type, storage, scalar, and navigability, see Properties.

Built-in Properties

All entity types automatically include these properties without explicit declaration:

Permission Flags on Properties

Individual properties support field-level access control:
Setting readable: false hides the property entirely from the metadata system. Setting updatable: false makes the property read-only in the sheet while still allowing it to be displayed. See Permissions for additional access control options.

constraints

Defines data scoping rules at three lifecycle points. Constraints control which work items are loaded, which can be selected in pickers, and how new entities are created. See Constraints for full reference.
The load constraint affects what data is visible in the sheet. The pick constraint independently controls what items appear in reference pickers. The create constraint controls the full creation workflow including where new items are placed and what defaults they receive.

Built-in Entity Types

Powersheet provides the Document entity type without explicit declaration. All other entity types, including Chapter, must be declared in the domainModelTypes map.
The Document entity type is not a work item. It provides navigation access to the containing document’s properties for filtering and constraints. It uses a different Polarion prototype than standard entity types.

Declaring Chapter

To use Chapter in your data model, declare it explicitly:
Chapters are commonly used in many-to-one relationships where work items belong to a document section:

How Entity Types Connect to Sources and Columns

Entity types defined in domainModelTypes are referenced throughout the sheet configuration. The connection flows through three layers:
  1. Data model — defines entity types and their relationships
  2. Sheet sources — queries entity types and expands relationships
  3. Sheet columns — binds to entity properties using dot-notation paths
The cardinality of a relationship determines the expand pattern and column binding syntax.

Cardinality Summary

See Relationships for relationship configuration and Binding Syntax for column path resolution.

Complete YAML Example

A comprehensive data model using the standard RTM entity set:

Programmatic Access

Powersheet provides several methods for accessing entity type definitions at runtime:
Programmatic access is primarily used in server-side extensions and custom Velocity templates. Standard sheet configuration uses the YAML declaration approach.
  • Relationships — Relationship definitions between entity types
  • Properties — Property configuration details including serverName, customFieldName, and type
  • Constraints — Load, create, and pick constraint reference
  • Cardinality — How relationship cardinality affects sources and columns
  • Polarion Type Mapping — How polarionType resolves to work item types
  • Permissions — Property-level access control
  • Link Roles — Polarion link role configuration for relationships
  • Navigation Directions — Forward and reverse navigation properties

Last modified on July 10, 2026