Is it possible to find the options available for a field? It seems like this should work:
https://docs.atlassian.com/jira/REST/cloud/#api/2/field/{fieldKey}/option-getAllOptions
But it doesn't seem to . . .
Thanks!
Hi Guy,
You can try the JQL autocomplete REST end point using the name of the field.
Regards,
Peter
Thanks! This would be good if it returned the IDs for the fields . . .
$ curl -s https://example.jira.com/rest/api/2/jql/autocompletedata/suggestions?fieldName=Risk | jq '.'{ "results": [ { "displayName": "High", "value": "High" }, { "displayName": "Low", "value": "Low" }, { "displayName": "Medium", "value": "Medium" } ]}
I need a convenient way to get the IDs . . . Thanks, though!!
Unfortunately, jql/autocompletedata seems to be ordered alphabetically, not following field configuration.
It looks like you're new here. Sign in or register to get started.