Forums

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

Value ID for Select List (cascading) in Cloud

Gregory Kremer
Contributor
February 6, 2024

Hi all,

Is there a way to download IDs for each and every value in the Select List (cascading) field? I have no problem getting those IDs "manually", one by one, but the field in question has too many values, which would take a significant amount of time to get the IDs and then document them. We are a Cloud-based Jira org, thus no access to the Db :-(. I'd greatly appreciate any advise.

1 answer

1 accepted

0 votes
Answer accepted
Hannes Obweger - JXL for Jira
Atlassian Partner
February 6, 2024

Hi @Gregory Kremer

here's an idea: Create an issue that has the respective Select list field on it and make sure it is editable. Then call the REST endpoint for this issue, like

https://<your-jira-site>.atlassian.net/rest/api/3/issue/<your-issue-key>?expand=editmeta

In the result, you'll see a section "editmeta". Within that section, find your field, and within that field, find "allowedValues". This should contain all options of the field, with their ID.

Hope this helps,

Best,

Hannes

Gregory Kremer
Contributor
February 6, 2024 edited

@Hannes Obweger - JXL for Jira Thank you. I've got a bunch of info that I need to digest now :-).

Honestly, this method is not much better than doing it manually, since it requires to manually document those IDs anyway. I was looking for something more convenient. That being said, thank you very much for trying to help.

Hannes Obweger - JXL for Jira
Atlassian Partner
February 6, 2024 edited

Yeah I know it's not ideal. To be fair, the JSON format that is returned by the REST endpoint is generally easy to process; e.g., if you use a JSON query like

editmeta.fields.<your-field-id>.allowedValues[*].id

you'd get your IDs:

 json-query.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events