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?



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 vote

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,203 views 13 19
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot