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

  1. Navigate to ScriptRunner. 
  2. Select Listeners > Create Listener
  3. Select Execution Failure Notifier.
  4. Enter a description of the listener in Name.
  5. Enter a script into the script editor to choose where you want your execution failure notification to go. You also have the option to click Example Scripts and copy code from a selection of relevant script examples. 

  6. 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:
On this page