Enum Type Syntax
Column Type Comparison
Enum Column Properties
How Enum Values Are Defined
All enum, rating, and multiEnum values come from Polarion enumerations — they are not defined in the sheet configuration.- Define the enumeration in Polarion: Go to Administration > Enumerations and create an enumeration with the values you need. For rating scales, use integer IDs (for example
1,4,7,10); for categorical enumerations, use string IDs (for exampledisc,drum,regen). Each value has an ID, a name (displayed in the UI), and an optional description. - Bind a custom field to the enumeration: In Polarion, define or extend a work item type with a custom field whose type is
Enum:<enumId>(single-select) orEnum:<enumId>:multi(multi-select). - Reference the enumeration from a column: In the sheet configuration, set
type: enum:<enumId>(orrating:<enumId>/multiEnum:<enumId>) andbindings: <fieldId>on the column.
enums or ratings section in the sheet configuration.
Example: Category Column
risk_category and stores the user’s selection in the custom field category on the risk work item.
Example: Rating Column With Descriptions
severity_scale would contain entries such as 1 — No effect, 4 — Moderate, 7 — High, 10 — Hazardous. Because the column type is rating:*, Risksheet shows the description next to each value in the dropdown.
Example: Multi-Select With Descriptions
showEnumDescription: true causes the descriptions defined in the Polarion enumeration measure_types to be shown alongside each option in the dropdown and inside the rendered cell.
Cell Decorators for Enum Columns
Cell decorators compare against enum value IDs, not display names. This is a common source of errors. Forenum/multiEnum columns this is a string ID, and for rating columns it is an integer ID.
Enum Loading and Filtering
Risksheet loads enumeration values automatically for any column whosetype is enum:*, rating:*, or multiEnum:*. The server resolves the ID after the colon against the Polarion enumerations of the project (or globally, if the enumeration is global).
- Risk-item enum fields are filtered by the Polarion enumeration bound to the risk work item type.
- Task-item enum fields are filtered by the Polarion enumeration bound to each task work item type, including the multi-project case (
dataTypes.task.projects). - Project pickers show only projects allowed in the configuration.
WorkItem Enum Fields
WorkItem enum fields (Polarion custom fields whose enumeration is a query for work items) use a type identifier matching the Polarion XML custom field definition:WorkItem enum fields have limited support on upstream and downstream linked item columns compared to main row item columns. Check the Polarion custom field XML definition (
custom-fields.xml) for the exact enumeration name to use in the type property.Dependent Enumerations
Dependent enumerations restrict the values offered in one enum column based on the value selected in another enum column. This is a column-level feature, not a top-level section of the sheet configuration. It was introduced in v25.3.1 for single-value enum columns; multi-value (multiEnum) dependency is planned for a future release.
Dependencies are defined on the dependent column using a column-level property that names the controlling column and supplies the value mapping. Verify the exact property name and shape in the configuration editor of your Risksheet version.
Dependent enumeration support landed in v25.3.1 for single-value enums. The v25.5.0 configuration editor provides YAML editing with syntax highlighting and inline error detection, which is the recommended way to author dependency configurations.
PDF Export Behavior
Enum fields in PDF export have inconsistent rendering depending on column type:Complete Example
design, process, and the entries of severity_scale, occurrence_scale, detection_scale, risk_category, and measure_types are defined as Polarion enumerations under Administration > Enumerations; the sheet configuration only references them by ID.
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