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

Hi,

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?

Thanks,

Mark.

1 answer

This widget could not be displayed.

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.

Thank-you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

197 views 1 3
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