Execution Failure Notifier
You can use this listener to listen for script execution failures in your instance and to notify you of the failure. You can specify which properties are extracted from the failing execution (for example, feature name, URL and stack trace) and have these details automatically sent to you via Slack, email, or another software platform.
Fragments are not tracked by this listener
Fragments do not publish an execution failure event and therefore are not tracked by this listener. We have created a ticket for Fragments to be tracked by this listener. You can follow this ticket to keep up to date with the progress.
Adding this listener
If you want notifications to be sent via Slack or email, make sure you have set up a Slack connection or configured a Mail Server.
- Navigate to ScriptRunner.
- Select Listeners > Create Listener.
- Select Execution Failure Notifier.
- Enter a description of the listener in Note.
Enter a script into the script console to choose where you want your execution failure notification to go.
Select Show snippets to find some code snippets to get you started in creating your script, or you can use the exact details provided and just edit the required details (for example, email or Slack room).
- Select Add to add the listener, or select Preview to validate the listener.
When an execution failure event occurs, you will receive a notification similar to the following: