How to dynamically change the items in a custom field pick-list based on the project


In Jira I've created a new custom field pick-list called Severity which is used to assign a severity to a software bug. I've pre-populated this list with a bunch of items, such as:

1. S1 Critical

2. S2 High

3. S3 Medium

4. S4 Cosmetic

Ordinarily one such list would be fine, but I now have a requirement to dynamically change the items that appear in this Severity custom field based on the project.

How best do I implement this? Create another custom field with the same name (if you can) and associated that to the required projects? Create a new field configuration scheme?



1 answer

Hi, there are several ways to approach this.

One way would be to create a different field per project required and name it accordingly - customfields with the same name although are different are a pain when creating gadgets and other things as it is very hard to tell the difference between them.

The other way would be to add all the items required in the customfield and use Javascript in the description (in field configuration) and filter out the results per project.

I'd prefer the first method if possible unless it must be the same field.

Thanks for the quick reply.

I opted for the easy option and created another custom field with the same name, but different selectable options.

Just wanted to make sure there wasn't a better way I hadn't thought of.


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
Posted 6 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

24 views 0 4
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