Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Patricia González
Contributor
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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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
Contributor
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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events