Duration Type Mapping
| Polarion Type | Mapped Type | Description |
|---|---|---|
DurationTime | String | Time duration values stored as string representation |
Duration values are mapped to the
String data type in Powersheet. The underlying Polarion DurationTime type stores structured time data, but Powersheet exposes it as a formatted string for display and editing.Property Configuration
Duration properties use the standard domain model property syntax withcustomFieldName pointing to a Polarion duration custom field:
| Name | Type | Default | Description |
|---|---|---|---|
name | string | Required | Property name unique within entity type |
customFieldName | string | null | Polarion custom field ID for duration fields |
type | string | Auto-detected | Automatically detected as duration from Polarion metadata |
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 | Duration properties are always scalar |
Save Operations
Duration custom field values follow the same save pattern as other custom fields, with value and original value tracked for change detection.| Operation | Behavior |
|---|---|
| Read | Duration value returned as formatted string |
| Save | Duration value submitted in Polarion-compatible format |
| Change detection | Original value tracked alongside new value |
The exact input format for editing duration values in the sheet (e.g.,
2d 4h, 1/2h, ISO 8601 duration) depends on the Polarion server configuration and the Powersheet formatting settings. Verify accepted formats in your application.Query Support
Duration fields are included in the set of primitive types supported by the query engine. They can be retrieved as part of entity queries alongside other custom field types.| Query Feature | Support |
|---|---|
| Select | Included in query results |
| Filter (where) | See application |
| Sort (orderBy) | See application |
Complete YAML Example
Sheet Configuration with Duration Column
Related Pages
- Primitive Types — All supported field types including duration
- Date and Time — Date-related field types
- Type Conversion — How types map between systems
- Custom Fields — Custom field mapping patterns
Sources
Sources
Source Code
SaveTest.javaFnExpression.java