How to get all available options of a custom field via API REST?

Patricia González September 23, 2022

Hi,

I want to get all posible option of a custom field using API REST.  

In the documentation it seems it's possible with this: 

Get all issue field options

GET /rest/api/3/field/{fieldKey}/option

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options--apps-/#api-rest-api-3-field-fieldkey-option-get 

But everything i get is a message telling me that the key field is invalid.

api_error.png

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Ivan Lima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2022

Hi @Patricia González, the one you're using works for connected apps only and the syntax should be different for the fieldkey. I believe you're looking to use https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-get. Give it a try, it should work.

Patricia González September 28, 2022

Thanks Ivan!

That gave me the information i needed. 

Regards.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events