Condition based fire event

In a JIRA workflow transition postfunction, I want to fire event based on condition.

for example, if Condition 'A' is true -> Fire event 'a' and if condition 'B' is true -> fire event 'b'.

6 answers

This widget could not be displayed.

Script runner has post-function which will fire event only if condition is true, so it might work for you

https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

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


Yes... you would just use this post-function twice with different conditions, and firing different events.

Hi,

I simply used script from here with priority condition https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions#PostFunctions-Firinganeventtobeprocessedbymaillistener

It doesn't work. We are using a instance which is pretty old version i.e 3.13. Will it work with this version ??

This widget could not be displayed.

@Jamie Echlin has answered a simular question already here - https://answers.atlassian.com/questions/167757/groovy-sript-runner-multi-select-using-contains

This widget could not be displayed.

Thanks. I have a custom field which is of type multiselect. How can I check condition for values of first select list and second select list in above example ?

This widget could not be displayed.

Sorry, my mistake. I mean Cascade select list and not multiselect. I want to check for values in first list and second list seperately and based on that want to fire different events.

This widget could not be displayed.

Hi,

I simply used script from here with priority conditionhttps://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions#PostFunctions-Firinganeventtobeprocessedbymaillistener

It doesn't work. We are using a instance which is pretty old version i.e 3.13. Will it work with this version ??

It should work but unless you can provide more information than "it doesn't work", ie log output, you are not going to get much help.

But personally, I would not fire up a 3.13 instance to try to debug this myself.

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...

229 views 3 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