ScriptRunner

What is ScriptRunner?

Jira and Confluence are among the most widely used collaboration and project management platforms in organisations. Yet despite their extensive feature sets, many teams eventually hit the limits of the standard configuration. This is exactly where ScriptRunner comes in: a powerful plugin by Adaptavist that enables deep customisation and automation directly within Atlassian products.

What is ScriptRunner?

ScriptRunner is a plugin for Jira (Server, Data Centre, and Cloud) as well as Confluence, which allows Groovy scripts to be executed directly within the Atlassian environment. Groovy is a dynamic scripting language that runs on the Java Virtual Machine (JVM) and is closely related to Java – providing access to the full Jira API and any Java libraries. ScriptRunner is developed and maintained by Adaptavist, one of the leading Atlassian partners worldwide. The plugin is one of the most popular extensions in the Atlassian Marketplace and is used by thousands of organisations.

Script Console

The Script Console is the heart of ScriptRunner. Administrators can execute Groovy code directly against the running Jira instance – ideal for administrative tasks, data migration, bulk changes to issues, or quick debugging tasks, without requiring an external development server.

Script Listeners (Event Handlers)

Script Listeners respond to events within Jira, such as the creation, editing, or closing of an issue. They enable complex automations – for example, automatically notifying external systems, populating fields, or triggering downstream processes – far beyond what Jira’s built-in automation feature can achieve.

Scripted Fields

Scripted Fields allow custom issue fields to be created whose values are calculated dynamically via script. Typical use cases include automatic deadline calculations, aggregating values from sub-tasks, or displaying status information from linked external systems.

Script Behaviours

Script Behaviours control the behaviour of fields directly within the Jira interface: fields can be dynamically shown or hidden, declared as mandatory, or pre-populated with calculated values – depending on other field contents or the user’s context.

Custom REST Endpoints

ScriptRunner allows custom REST APIs to be published directly within Jira. External systems can then communicate with Jira in a structured way without the need to operate a separate middleware server. This significantly simplifies integration scenarios.

ScriptRunner in Practice: Typical Use Cases
Use Case Description
Ticket Automation Automatically assigning, prioritising, or closing issues based on defined rules
Workflow Extension Complex conditions and validations in Jira workflow transitions
External Integration REST calls to third-party systems (e.g. SAP, monitoring tools) on issue events
Reporting Dynamically calculated fields for SLA monitoring, effort tracking, or KPI dashboards
Data Migration Bulk modification of issue data via the Script Console without manual effort
Confluence Automation Dynamic page content generation and automated macros in Confluence

Technical Foundation: Groovy and the Jira API

The scripting language Groovy is closely related to Java and can be learned intuitively by those with Java knowledge. Since Jira itself is built on Java, ScriptRunner has direct access to the full internal Jira API via Groovy – a decisive advantage over solutions that rely solely on external REST interfaces.
For teams without deep Java knowledge, ScriptRunner offers an extensive catalogue of pre-built scripts and templates that can serve as a starting point. The learning curve is therefore significantly flatter than developing custom Jira plugins from scratch.

ScriptRunner vs. Jira Automation: What is the Difference?

Jira has included its own automation feature for several versions now, offering no-code rules for common scenarios. ScriptRunner, however, is aimed at users who need to go beyond that:

  • Jira Automation covers standard scenarios; ScriptRunner enables arbitrarily complex logic.
  • ScriptRunner provides access to the internal Jira API – Jira Automation is limited to the provided actions.
  • Custom REST endpoints and full Java library support are only possible with ScriptRunner.
  • ScriptRunner is particularly suited to administrators and developers looking to implement demanding processes.

Who is ScriptRunner Relevant For?

ScriptRunner is primarily of interest to Jira administrators, developers, and technically proficient power users in organisations that make intensive use of Atlassian products. Organisations that benefit most are those that:

  • operate complex, multi-stage workflows that cannot be mapped using standard tools,
  • need to integrate Jira into an existing IT landscape (ERP, monitoring, ITSM),
  • want to automate recurring manual tasks in Jira,
  • have individual reporting requirements that standard dashboards cannot fulfil.

Conclusion

ScriptRunner is far more than a simple automation plugin – it is a fully-fledged development platform within Jira and Confluence. Anyone looking to overcome the limits of the standard configuration will find in ScriptRunner a powerful tool that makes virtually any customisation possible.