Built-In Listeners
We have a number of built-in listeners that let you have better control over your business processes. Many of the listeners available are also available as Post Functions; however, listeners allow you more control over automated actions than you would get with a post function.
With built-in listeners, you can specify which events the listener is fired on and which projects are applicable. You can also add Conditions to your built-in listeners, as described below.
Check out the Listeners page for an overview of listeners and how to use them.
Accessing built-in listeners
Listeners can be accessed if you go to ScriptRunner > Listeners.
Conditions
With conditions you can set the parameters for which the built-in script will fire on. For example, if you need to filter on issue type you could enter the following script:
groovyissue.issueTypeObject.name == "Bug" // && any other conditions
More example conditions can be found if you select the Example scripts button in script editor.
You can add multiple configurations for the same type of listener if they have different parameters.
Available built-in listeners
The following built-in listeners are available with ScriptRunner:
- Adds the Current User as a Watcher
- Clones an Issue and Links
- Create a Sub-task
- Execution Failure Notifier
- Fast-track Transition an Issue
- Fires an Event when Condition is True
- Post a Message to Slack
- Send a Custom Email
- Send a custom email (non-issue events)
- Version Synchroniser