Supported Primitive Types
The following Polarion custom field types are supported and automatically mapped when properties are defined in the domain model.| Polarion Type | Powersheet Data Type | Description |
|---|---|---|
String | String | Plain text values |
Text | String | Multi-line text content |
Integer | Int32 | Whole number values |
Float | Double | Floating-point decimal values |
Currency | Double | Monetary values stored as decimal |
Boolean | Boolean | True/false toggle values |
Date | DateTime | Full date and time with timezone |
DateOnly | DateTime | Date without time component |
TimeOnly | DateTime | Time without date component |
DurationTime | String | Time duration values (see Duration) |
Property Definition for Primitive Types
Each property in the domain model can specify atype, though Powersheet automatically infers the type from Polarion metadata in most cases.
| Name | Type | Default | Description |
|---|---|---|---|
name | string | Required | Property name unique within the entity type |
serverName | string | Same as name | Override for the actual Polarion field name when it differs from the client-facing property name |
customFieldName | string | null | Polarion custom field ID when the property maps to a custom field |
type | string | Auto-detected | Data type override; values include string, integer, date, enum |
readable | boolean | true | Controls whether the property can be read by clients |
updatable | boolean | true | Controls whether the property can be modified by clients |
scalar | boolean | true | true for single value, false for collection |
Automatic Built-In Properties
All work item entity types automatically include the following built-in properties, regardless of what is defined in the domain model:| Property | Type | Description |
|---|---|---|
objectId | String | Universal primary key; read-only, non-nullable |
id | String | Polarion work item ID |
title | String | Work item title |
projectId | String | Foreign key to the project |
The
objectId and id properties are always read-only. They cannot be modified by clients regardless of updatable configuration.Query Behavior with Primitive Types
Primitive type properties support standard query operators for filtering:| Data Type | Supported Operators |
|---|---|
String | eq, ne, contains, startsWith, endsWith, toupper, tolower, trim |
Int32 / Double | eq, ne, gt, ge, lt, le |
Boolean | eq, ne |
DateTime | eq, ne, gt, ge, lt, le, year, month |
Complete YAML Example
The
richtext Polarion type is retrieved and accessible in queries but rendering behavior for rich HTML content in sheet columns may vary. Verify the display format in the application for rich text fields.Related Pages
- Custom Fields — Custom field ID mapping
- Enum Types — Enumeration field type handling
- Type Conversion — Full conversion rules between type systems
- Date and Time — Date-specific type details
- Properties — Domain model property reference
Sources
Sources
Source Code
QueryDataTest.javaSchemaGenerator.javaMetadataTest.javaTypeFns.javaprod-powersheet-src/com.nextedy.powersheet.client/ltc-repo/packages/common/types/domain/document.ts