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

This widget could not be displayed.

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

This widget could not be displayed.

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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

292 views 5 0
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