getAvailableEnumOptionsForWorkItemType
Fetch allowed enum values for a specified field and work item type to validate inputs before creating Polarion work items.
Instructions
Returns the enumeration options that may be set on one field for a Work Item type (e.g. type=requirement), before any concrete item exists. fieldId must be an enumeration-typed field (e.g. status, severity, or a custom enum field). Pass type=~ for options that apply regardless of type. Call it before postWorkItems to choose valid values; for an existing item use getAvailableEnumOptionsForWorkItem, which also applies that item's dependent enumerations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The Type of the object. Use '~' without quotes to represent no target Type. | |
| fieldId | Yes | The ID of an enumeration-typed field (e.g. `status`, `severity`, `priority`, or a custom enum field ID), not its display label. Use the matching getFieldsMetadataFor* tool to discover field IDs. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs. | |
| page_size_ | No | Maximum number of items to return in this page (e.g. `100`). Use together with `page[number]` to paginate through a large result set. | |
| page_number_ | No | 1-based page number to fetch when the result set is paginated (e.g. `2` for the second page). Combine with `page[size]`; omit to fetch the first page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| links | No |