Forums

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

Can't retrieve custom field drop down options via REST API

MCjiraLearner August 29, 2024

I'm trying to extract a custom fields' dropdown options into a CSV file. I run the following code and I get this error. What am I doing wrong?

1.png2.png

1 answer

1 vote
Anandhi Arumugam _Cprime_
Community Champion
August 30, 2024

Hi @MCjiraLearner 

You need to use the endpoint https://{yourjira}.atlassian.net/rest/api/3/field/customfield_{id}/context/{fieldConfigId}/option

This will give you a JSON with the list of options for the specific customfield context.

If you would like to have a list of contexts for the customfield, use the Endpoint

https://{yourjira}.atlassian.net/rest/api/3/field/customfield_{id}/context

Hope this helps!

MCjiraLearner August 30, 2024

I now get this message:  "Only Jira administrators can access custom field contexts."

 

Anyway around not needing to be admin?

Anandhi Arumugam _Cprime_
Community Champion
August 30, 2024

You cannot get the customfield options for a specific context wothout being a Jira Admin.

If you want to see the list of options you can choose for a specific issue's customfield, then use the Endpoint

/rest/api/3/issue/{issueIdOrKey}/editmeta

Like Kieren _SmolSoftware_ likes this

Suggest an answer

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

Atlassian Community Events