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

Siebren Zwerver July 4, 2013

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

0 votes
Jos Braaksma July 6, 2013

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

0 votes
Renjith Pillai
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 6, 2013

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

0 votes
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2013

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

Suggest an answer

Log in or Sign up to answer