REST API get custom field values

Been searching quite a bit for a couple days and have not been able to get the values for a custom field (customfield-10040). Tried the following:


Some of these I get some data about the field (name, autoCompleteUrl, operations, schema, etc) but never the list of values that I can use. So how can I get an array of values for a custom field?

I've done this with SOAP but isn't that deprecated and plus I want to use one endpoint for all.

2 answers

1 accepted

0 vote

Fields returned by createmeta and editmeta should have an allowedvalues attribute in json.

Ah... looks like not all fields have allowedValues which is misleading maybe. We have a custom field that has selections for which Browser a bug is seen in. In our Jira site it shows a list of suggestions but the createmeta call doesn't show an allowedValues. But looking at another custom field it does have a list of allowedValues.

To get the suggestions that Jira site shows for the Browser custom field, is there an API to hit for it? Is that what 'labels/130370/suggest?query=abcd' is for? I don't see it in the REST API:

What type of field is it? Also, are you seeing the options in the same project and for the same issuetype? If not, the context could be the issue.

is it possible to get customfield values from API where the return value for custom field is not in a format such as customfields_10000 rather the name that was assigned to in when created in JIRA?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

816 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you