Get Custom Field Options (Context)
GET {{baseUrl}}/rest/api/3/field/:fieldId/context/:contextId/option?optionId=<long>&onlyOptions=false&startAt=0&maxResults=100
Returns a paginated list of all custom field option for a context. Options are returned first then cascading options, in the order they display in Jira.
This operation works for custom field options created in Jira or the operations from this resource. To work with issue field select list options created for Connect apps use the Issue custom field options (apps) operations.
Permissions required: Administer Jira global permission.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
optionId | string | The ID of the option. | |
onlyOptions | boolean | Whether only options are returned. | |
startAt | number | The index of the first item to return in a page of results (page offset). | |
maxResults | number | The maximum number of items to return per page. |
RESPONSES
status: OK
{"maxResults":100,"startAt":0,"total":4,"isLast":true,"values":[{"id":"10001","value":"New York"},{"id":"10002","value":"Boston","disabled":true},{"id":"10004","value":"Denver"},{"id":"10003","value":"Brooklyn","optionId":"10001"}]}