Automated labels based on component * priority?

I have a necessity to calculate and implement additional 4-level "impact" field (or label) when creating or editing an issue, based on component and existing priority field. What would be the easiest way for achieving this?

Examples:

component = Jira AND priority = blocker, impact = 1

component = Jira AND priority = critical, impact = 1

component = Jira AND priority = Trivial, impact = 3

component = Intranet AND priority = critical, impact = 2

etc.

2 answers

0 votes

I'd use the script runner plugin to write a listener to catch changes to the issues and generate the right labels.

However...

1. I would NOT use labels here, stick to a single-select custom field for the "impact" field.

2. You've got an incipient problem with the design - What happens when I raise an issue with components "Jira" AND "Intranet"? You might want to consider using a single select instead of components, or just work through the logic with multiple selections in mind.

Thanks for a quick answer!

When selecting multiple components, the "impact" would always remain highest, taking into consideration the component with the highest impact value. That is what we actually need.

But we are also thinking of assigning a color to the impact value, in that case custom field would be easier to configure.

I have Script Listener installed, however i'm not quite good in scripting - should i start a custom script? I suppose i can't use any of the default conditions:

Send a custom email
Send an email based on the provided template if conditions are met

Clones an issue and links.
Clones this issue to another issue, optioninally in another project, and optionally a different issue type.

Create a sub-task.
Create a sub-task. Will optionally reopen a matching sub-task.

Custom listener
Write your own groovy class as a custom listener.

Fast-track transition an issue
If the condition is met, automatically transition this issue to another status

Fires an event when condition is true
Fires an event that can be picked up by a notification scheme, in order to send mail only under certain conditions, eg Priority is Blocker

Adds the current user as a watcher

Which conditions should i define?

We managed to solve it using a custom field/groovy script

Thanks for a quick answer!

When selecting multiple components, the "impact" would always remain highest, taking into consideration the component with the highest impact value. That is what we actually need.

But we are also thinking of assigning a color to the impact value, in that case custom field would be easier to configure.

I have Script Listener installed, however i'm not quite good in scripting - should i start a custom script? I suppose i can't use any of the default conditions:

Send a custom email
Send an email based on the provided template if conditions are met

Clones an issue and links.
Clones this issue to another issue, optioninally in another project, and optionally a different issue type.

Create a sub-task.
Create a sub-task. Will optionally reopen a matching sub-task.

Custom listener
Write your own groovy class as a custom listener.

Fast-track transition an issue
If the condition is met, automatically transition this issue to another status

Fires an event when condition is true
Fires an event that can be picked up by a notification scheme, in order to send mail only under certain conditions, eg Priority is Blocker

Adds the current user as a watcher

Which conditions should i define?

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot