Execution History

Understanding the effects of ScriptRunner scripts on your Confluence instance is critical for successful platform management. Use Execution History to view up to two years of execution times and failure rates of ScriptRunner scripts in your instance, allowing a long-term view of script performance.

Using the extended history, observe if a script gets slower over time or if slow performance correlates with specific events (such as Confluence or app upgrades). Execution History provides long-term analytics allowing you to develop scripts and change execution timings to keep your instance performing optimally. Viewable executions include scripted listeners, scheduled jobs, escalation services, and post functions.

To view the execution history of your ScriptRunner script:

  1. Navigate to the script location. For example, to view the execution history of a macro, navigate to Add Label.

  2. Click the text under the History column, and the Execution Information window appears.

    The Execution Information window.
  3. Click the success (green checkmark) or failure (red X) symbol to view each execution. The Execution History window shows in-depth data and logs for each script execution.

    The Execution History window showing data and logs for each script execution.

    Execution Information has four sections:

    • Time - Time the task was executed.
    • Logs - Displays log information for the specific execution.

    • Payload - Data sent when the script executed.

    • Timing - Time taken for the script to execute, including Elapsed and CPU Time.

Performance

An execution history graph for the script shows Duration and Node data. To see this information, select the Performance icon.

A screenshot showing the Performance icon.

You can select the Duration options to change the scale of the x-axis.

If you have ScriptRunner for Confluence Data Center, you can select the Node option to switch between nodes. 

The sxecution history graphs.

Each graph segment represents a 30-minute block.

On this page