Enum Type Syntax
enums or ratings section of risksheet.json, or a Polarion enumeration.
Column Type Comparison
| Feature | enum:ID | rating:ID | multiEnum:ID |
|---|---|---|---|
| Selection mode | Single-select | Single-select | Multi-select |
| Shows descriptions in dropdown | No | Yes | No |
| ID type | String | Integer | String |
| Typical use case | Categorical fields | Risk assessment scales (S, O, D) | Tags, multiple categories |
| Cell decorator comparison | Compare against enum ID | Compare against integer ID | See Multi-Enum Columns |
Enum Column Properties
| Name | Type | Default | Description |
|---|---|---|---|
id | string | Auto-generated | Unique column identifier |
type | string | None | enum:ENUM_ID where ENUM_ID references the enumeration definition |
header | string | None | Column header display text |
binding | string | Same as id | Polarion field binding |
level | number | 1 | Hierarchical level |
readOnly | boolean | false | Controls editability. Optional for main row items; mandatory for upstream/downstream linked item columns |
filterable | boolean | true | Allows filtering by enum values |
width | number | See application | Column width in pixels |
Enum Definition in risksheet.json
Custom enumerations are defined in the enums section:
| Property | Type | Description |
|---|---|---|
id | string | Internal identifier used in data storage and cell decorator comparisons |
name | string | Display name shown in the dropdown |
description | string | Extended description (shown in rating type dropdowns only) |
icon | string | Icon identifier for visual display |
Rating Definition in risksheet.json
Rating enumerations are defined in the ratings section. The structure is identical to enums but ratings use integer IDs and display descriptions in dropdowns:
Unlike regular enumerations which use string IDs, ratings use integers as IDs. This distinction is important when writing cell decorators or formulas that compare values.
Cell Decorators for Enum Columns
Cell decorators compare against enum IDs, not display values. This is a common source of errors.Enum Loading and Filtering
Risksheet automatically loads enumeration values for dropdown columns:- Risk-type enums filter options by the configured risk work item types
- Task-type enums filter options by the configured task types across multiple projects
- Project enums show only projects allowed in the configuration
enums section of risksheet.json. Custom enum definitions override or supplement Polarion-provided values.
WorkItem Enum Fields
WorkItem enum fields (custom fields that reference work items as enum values) require specific type syntax matching the Polarion XML custom field definition:WorkItem enum fields have limited support for upstream and downstream items compared to main row item properties. Check the Polarion custom field XML configuration (
custom-fields.xml) for the exact enum definition name to use in the type property.Dependent Enumerations
Dependent enumerations allow filtering available values in one column based on the selection in another column. This feature was released in version 25.3.1 for single-value enums. Therelations section in risksheet.json defines dependent enum relationships:
Dependent enumeration support was released in version 25.3.1 for single-value enums. Multi-value enum dependency (multiEnum) is planned for a future release. Verify available functionality in your Risksheet version.
| Pattern | Description |
|---|---|
| Tree-based (1:N) | Each source value maps to a unique set of target values |
| Mixed | Target values can be shared across multiple source values |
PDF Export Behavior
Enum fields in PDF export have inconsistent rendering:| Field Type | Export Behavior |
|---|---|
Regular enum columns | Exported with display names (titles) |
rating columns | Exported with numeric IDs instead of display names |
| User reference columns | Exported with user IDs instead of display names |
Complete Example
See Also
- Multi-Enum Columns — Multi-select enum configuration
- Column Type Reference — Complete column type listing
- Cell Decorators — Conditional formatting with enum values
- Conditional Formatting — Style-based formatting rules
- Configuration Properties Index — Complete property reference