Automatically update the choices on a Select List (single choice) Field

Rees_ Ian
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.
January 6, 2025

I have a Jira Custom field of type 'Select List (single choice)'. I frequently receive requests to update the choices available and am passed an excel spreadsheet that contains the new choices for the field.

This is currently a manual effort and I am wondering whether there is a way of automating this using Automation, ScriptRunner etc. so that it can be done with one or two clicks taking the cells in the excel spreadsheet as the choices for that field.

Thanks

2 answers

1 accepted

0 votes
Answer accepted
Marc - Devoteam
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.
January 6, 2025

Hi @Rees_ Ian 

No this is a manual action via the GUI or you can use the API.

If you have JSM and Assets, start using assets for this, then you could automate this to create new options via a request and have automation crate a new object in the assets cmdb.

Rees_ Ian
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.
January 7, 2025

Thank Marc.  Automation or ScriptRunner would mean using the API also so I am happy with that.  Do you have any specifics on how to update the choices on a Select List (single choice) Field via the API ?

 

Regards

Marc - Devoteam
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.
January 7, 2025
Rees_ Ian
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.
January 7, 2025

Perfect thanks

0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 6, 2025

Hello @Rees_ Ian ~ out of curiosity...would labels work for this scenario so that you don't have to constantly make updates and users can create their own?

Rees_ Ian
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.
January 7, 2025

Hi Laurie, thanks for your reply.  I understand your suggestion but I regard labels as the wild west of Jira because they are too easy to create they are case sensitive, so a minor mistype can end up with lots of labels being created.  But thank you for offering an alternative suggestion.

Regards

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