Custom Field Options (Enabled/Disabled)


JIRA REST API does not give enabled/disabled and sequence details of custom field options. JEP provides this functionality.

GET custom field options

URL: {JIRA_BASE_URL}/rest/jep-api/latest/customfield/{customfieldId}/options?projectKey=NP&issueTypeId=1&onlyEnabled=true

Method: GET

Sample output : 

 [
  {
    "optionId": 10100,
    "optionValue": "Red",
    "sequence": 0,
    "disabled": false
  },
  {
    "optionId": 10101,
    "optionValue": "Green",
    "sequence": 1,
    "disabled": false
  },
  {
    "optionId": 10102,
    "optionValue": "Blue",
    "sequence": 2,
    "disabled": false
  },
  {
    "optionId": 10103,
    "optionValue": "Yellow",
    "sequence": 3,
    "disabled": true
  }
]

Parameters

ParameterOptional/RequiredValue / Description
customFieldIdRequired (Path Parameter)
projectKeyRequired (Query Parameter)Project Key for which the custom field values will be listed. e.g.: ABC, PRJ
issueTypeIdRequired (Query Parameter)Issue Type Id for which the custom field values will be listed. e.g.: 10001
onlyEnabledOptional (Query Parameter) default:falseIf true, lists all enabled custom field options, disabled options will be excluded. Otherwise, disabled options will also be listed.