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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,528 views 15 21
Read article

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