Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get custom field options

Returns custom field’s options defined in a given context composed of projects and issue types.

GET/api/2/customFields/{customFieldId}/options
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
customFieldIdstringrequired

The ID of the custom field.

Query parameters
maxResultsstring

The maximum number of results to return.

issueTypeIdsstring

A list of issue type IDs in a context.

querystring

A string used to filter options.

sortByOptionNamestring

Flag to sort options by their names.

useAllContextsstring

Flag to fetch all options regardless of context, project IDs, or issue type IDs.

pagestring

The page of options to return.

projectIdsstring

A list of project IDs in a context.

Responses
200

Returned if a custom field with the given customFieldId exists and user has permission to it.

optionsCustomFieldOptionBean[]
Show properties
Array of CustomFieldOptionBean
childrenIdsinteger<int64>[]
disabledboolean
idinteger<int64>
selfstring<uri>
valuestring
totalinteger<int32>
404

Returned if a custom field with the given customFieldId does not exist or the user does not have permission to view it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/customFields/string/options' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "options": [
    {
      "childrenIds": [
        4,
        5
      ],
      "disabled": false,
      "id": 3,
      "self": "http://localhost:8090/jira/rest/api/2.0/customFieldOption/3",
      "value": "Blue"
    }
  ],
  "total": 1
}

Was this page helpful?