Introduction to Groovy

ScriptRunner allows you to create custom scripts using the Apache Groovy language. Groovy is both a dynamic and static language; it has been created for the Java platform, meaning seamless integration with Jira, Confluence, and Bitbucket.

Groovy is a programming and scripting language, and therefore you do not need to define a class to be able to run code. With its powerful features, the use of Groovy in ScriptRunner allows for a high level of customisation.

Learning Groovy

There are many great resources available to help you learn how to code in Groovy. We suggest you look at the official Groovy website for a list of learning resources including books, presentations, and courses. Groovy also provides extensive reference material and get-started documentation.

We intend this page to be a list of useful resources for self-learning. Adaptavist Support cannot help with any training in Groovy.

Using Groovy in ScriptRunner

You can use Groovy scripts to customise the majority of ScriptRunner features. Groovy scripts can be inserted almost anywhere a code editor is found. You can enter Groovy scripts directly into the ScriptRunner front-end, or select one of the .groovy files stored in the Script Roots directory in the Script Editor.

Want to make your Groovy scripts easier for non-technical users to customise? Try the Dynamic Forms feature.

Webinars and events

Check out our ScriptRunner webinars and events to get all the latest ScriptRunner news and product updates:

  • Your updates webinar - Attend a once-per-quarter highlight reel of what's new and what's next to keep you at the top of your automation game.

  • Events - See all of the upcoming ScriptRunner events and webinars, plus any industry events we'll be at!

Example Groovy scripts for ScriptRunner

Visit the Adaptavist Library for a collection of tailor-made Groovy scripts for use in ScriptRunner. Either copy these scripts directly into your instance or edit them to fit your needs.

On this page