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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

607 views 6 12
Read article

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