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
Community showcase
Posted Sep 18, 2018 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...

20,634 views 2 7
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