Wanted to know how ScriptRunner plugin functionality "Fires an event when condition is true" works?

In new version of ScriptRunner plugin I saw that I can choose new events like CustomFieldCreatedEvent, CustomFieldUpdatedEvent, CustomFieldDeletedEvent etc. But I do not know how to use these new events? I did not find any way to add this new events in my project notification scheme. So if I can not add this new events to my project notification scheme how can i receive notifications?

Thanks

Iftekhar

2 answers

In the Admin 'Add-on' Section, find Script runner section in menu on left of page. Click 'Scripted Listeners', then click

'Fires an event when condition is true'

image2016-4-18 21:6:59.png

Now configure the Listener as to which events to evaluate, and enter some evaluation code in the 'conditions' section. Click 'expand examples' for clues. Finally select which event you ultimately want to fire if the condition is true. This event can be a custom event, that you can watch out for in a notification scheme.

 

image2016-4-18 21:5:56.png

0 votes

You cannot use those events in a notification scheme, they are not "per project" for one reason. 

You can run your own code when any of those things happen - see https://scriptrunner.adaptavist.com/latest/jira/listeners.html#_custom_listeners

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

23,861 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