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.
Using Groovy in ScriptRunner
We do not support AST (Abstract Syntax Tree) transformations in our scripts.
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.
- 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.