list_work_item_enum_options
Lists valid enum option IDs for a work item field before creating or updating items, preventing write rejections from invalid enum values.
Instructions
List valid enum option ids for a work item field of a given type.
Call this before create_work_items / update_work_items — invalid enum ids are rejected on write. An unknown work_item_type silently falls back to '~', so verify the type id first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"field_id": "<field_id>",
"work_item_type": "<work_item_type>"
},
"name": "list_work_item_enum_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field_id | Yes | e.g. 'status', 'type', 'severity', 'priority', or a custom field id. | |
| page_size | No | ||
| project_id | Yes | Polarion project ID. | |
| page_number | No | ||
| work_item_type | Yes | e.g. 'task', 'requirement'; '~' = type-agnostic. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| items | Yes | ||
| has_more | No | ||
| page_size | Yes | ||
| total_count | Yes |