Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,162
Community Members
 
Community Events
168
Community Groups

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

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 Sep 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.

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

Atlassian Community Events