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 console that defines where you want your execution failure notification to go. 

    Select Example scripts to find some code examples 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).

  6. Select Add to add the listener, or select Preview to validate the listener. 
    Image showing this built-in script filled in
    When an execution failure event occurs, you will receive a notification similar to the following:
On this page