Forums

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

How can I get all the values of a field using Rest API

Sanjay Bhadauria
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 19, 2021

I want to get all the drop down options for a field "Test Level and Area" for our Project Create Issue - JIRADC2(EE Jira 11.0) (nokia.com) using Rest API, I can see the options only when I Edit that field, but I need a command or Rest API to get the value of that field.

2 answers

0 votes
Bill Sheboy
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.
August 19, 2021

Hi @Sanjay Bhadauria -- Welcome to the Atlassian Community!

Do you want to get all possible values for a selection field?  If so, please try this method:

https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/field/{fieldKey}/option-getAllOptions

Best regards,
Bill

0 votes
Charlie Misonne
Community Champion
August 19, 2021

Hi Sanjay, welcome to the Atlassian Community!

I don't think there is a specific REST endpoint for that but you could try the one documented on https://docs.atlassian.com/software/jira/docs/api/REST/8.18.2/#customFields-getCustomFields

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events