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
Parameter | Optional/Required | Value / Description |
---|---|---|
customFieldId | Required (Path Parameter) | |
projectKey | Required (Query Parameter) | Project Key for which the custom field values will be listed. e.g.: ABC, PRJ |
issueTypeId | Required (Query Parameter) | Issue Type Id for which the custom field values will be listed. e.g.: 10001 |
onlyEnabled | Optional (Query Parameter) default:false | If true, lists all enabled custom field options, disabled options will be excluded. Otherwise, disabled options will also be listed. |