Is it possible to automatically change the priority when a custom field changes to a specific value?

Is it possible to automatically change the priority when a custom field changes to a specific value?

Example:

Priority: low

Custom field: question

---

Priority: urgent<==has to change automatically

Custom field: problem <=Because this one has changed

3 answers

Yes. A solution may be our plugin JJupin - Live Fields (but there are other possible solutions). Check: http://confluence.kepler-rominfo.com/display/JJUPIN/How+%27Live+Fields%27+work

If you can use script runner this can be a simple job:

  • Allow change of that custom field only via transition (source and destination status can be same for this transition) (I mean take out from Edit screen)
  • Add a post function using script runner to do this check, if the custom field value has changed, change the issue status as well.

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions

Slingshot UpdateFields might be a solution.

https://marketplace.atlassian.com/manage/plugins/com.tiltedsolutions.slingshot.updatefields

With the following Listener configuration, "question"s will always have priority "low" and "problem"s will be "urgent", asuming your custom field is named "CustomfieldName".

<SlingshotUpdatefields>
<update-fields>
<customfield name="CustomfieldName" eq="question"/>
<priority set="low"/>
</update-fields>
<update-fields>
<customfield name="CustomfieldName" eq="problem"/>
<priority set="urgent"/>
</update-fields>
</SlingshotUpdatefields>

The Listener will ensure this after every change to the issues, not just at transitions.

More power comes from Slingshots ability to declare inter-issue data synchronizations, that is, set field of linked or child/parent issues (to arbitrary depth) abd the use of variables to set one field to the value of another (again, between issues if you like).

cheers, Jos

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

607 views 6 12
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