Identify the Error
Custom field issues typically present as:- A column appears empty even though work items have values in the custom field
- Editing a column does not persist values back to Polarion
- The column appears with a read-only indicator when it should be editable
- Custom field type (number, date, enum) renders as plain text
Step 1: Add the Property to the Domain Model
Custom fields must first be declared as properties on the appropriate entity type in your domain model. Each property name maps to a Polarion field:The property name should match the Polarion custom field ID. Polarion custom fields are prefixed with
c_ by convention (e.g., c_riskLevel, c_verificationMethod). Confirm the exact field ID in Administration > Work Items > Custom Fields.Step 2: Add the Column to the Sheet Configuration
After adding the property to the domain model, add a corresponding column in your sheet configuration:Step 3: Verify Type Mapping
Powersheet automatically maps Polarion field types to appropriate data types. If your custom field appears but renders incorrectly, check the type mapping:| Polarion Type | Expected Behavior | Common Issue |
|---|---|---|
| String | Text input | Renders correctly by default |
| Integer | Numeric input | Ensure value is saved as number |
| Float / Currency | Decimal input | Check decimal precision |
| Boolean | Checkbox | Must be true/false |
| Date / DateOnly | Date picker | Date format mismatch |
| Enum | Dropdown selector | Enum values must match Polarion |
Step 4: Check Read-Only Status
If the column appears read-only unexpectedly, verify:- Column-level: The
isreadOnlyproperty should befalse(default) - Formatter-level: Check if a formatter applies
readOnlystyle - Permission-level: Verify the user has write permissions
- System fields: Built-in fields like
idandoutlineNumberare always read-only
Step 5: Verify Enum Custom Fields
For enum-type custom fields, the available options are loaded from Polarion. If the dropdown shows no options or incorrect options:- Confirm the enum is defined in Polarion for the correct work item type
- Ensure the
polarionTypein the domain model matches the work item type that has the enum configured - Check that
enumValuesin the domain model (if specified) matches the Polarion enum option IDs
Verification
After making corrections:- Save both the domain model and sheet configuration
- Wait for the connection to restart (status returns to Active)
- Reload the powersheet document
- You should now see the custom field column with correct values, proper editing controls, and successful save operations
See Also
- Create a Custom Field — custom field creation guide
- Add a Custom Property — domain model property setup
- Add a Column — column configuration basics
- Configure an Enum Field — enum field setup
Sources: SaveTest.java, MetadataTest.java, Property.java, DataPropertyFactory.java
Sources
Sources
Source Code
SaveTest.javaMetadataTest.javaProperty.javariskmanagement_model.yamlDataPropertyFactory.java