Release 7.x

7.13.0

Bug Fixes

  • SRPLAT-2253 - ClassGraph ThreadGroup memory leak
  • SRBITB-1212 - Valid Jira Issue check errors out on a 400 response from Jira
  • SRBITB-1081 - ScriptRunner creates folders in home directory when first node is started

7.12.0

New Features

  • SRBITB-1150 - Optimise mirrored repos polling

ScriptRunner and Java Agents

New ScriptRunner and Java Agents content has been added to our documentation to help you use Java Agents with ScriptRunner for BitBucket.

7.11.1

Bug Fixes

  • SRBITB-1220 Mirroring project configurations are accidentally deleted

7.11.0

New Features

  • SRBITB-1213 - Check and update compatibility with bitbucket 8.8.0
  • SRBITB-1211 - Anonymous mirroring of public repositories
  • SRBITB-1202 - Configure mirrored repos error status
  • SRBITB-1151 - Repo Mirroring: detect existing project synchronisation even when sync new option is not checked
  • SRBITB-546 - Trusted Commit Authors tooltip not clear to users

Bug Fixes

  • SRPLAT-2205 - Sorting works wrong for Configured items table
  • SRBITB-1218 - Respond to pushes if pull request is outdated or conflicted hook gives wrong message on rebase and force push
  • SRBITB-1208 - Class cast exception when two listeners for different events use the same condition

7.10.0

New Features

  • SRBITB-1204 - Parallel mirrored repos polling

  • SRBITB-1186 - Show the repositories that failed mirroring in View and configure mirrored repositories

Bug Fixes

  • SRPLAT-2180 - "Switch User Function" is not recorded in Audit Log
  • SRBITB-1205 - Repo Mirroring: Renamed target repos cause execution errors
  • SRBITB-1201 - Available repo are not displayed when clearing regex field after using regex field

7.9.0

New Features

  • SRBITB-1195 - Show the repo tree for custom listeners
  • SRBITB-1185 - Update message shown to users in results of mirroring preview
  • SRBITB-1062 - Add Project/Repository Selection Tree to Custom Listener

Bug Fixes

  • SRBITB-1197 - Use the correct repo ID when auto-merging cross-repository PRs
  • SRBITB-618 - Sanitise Github/Gitlab repo names before mirroring

7.8.0

New Features

  • SRBITB-1184 - Make preview mandatory before running the mirroring built in scripts

Bug Fixes

  • SRBITB-1196 - Links to events javadocs are broken

  • SRBITB-1191 - Configure mirrored repositories, check all buttons for Sync Types are not working

  • SRBITB-1183 - Continue mirroring other repositories if one of the mirroring fails for one of the repositories

7.7.0

New Features

  • SRBITB-302 - Utility method to extract the changed paths from a set of RefChanges

Bug Fixes

  • SRPLAT-2175 - Third party plugin class loaders registered in scripts using @WithPlugin are not discarded when said plugins are disabled
  • SRPLAT-2149 - Execution history item containing nulls causes error when viewing history
  • SRPLAT-2116 - CodeEditor doesn't load because of wrong MIME type
  • SRBITB-1192 - Repo tree does not load for listeners.

7.6.0

New Features

  • SRBITB-1103 - Version of pathsMatch for a single commit
  • SRBITB-1051 - Let all pre-hooks trigger on file-edit

Bug fixes

  • SRPLAT-2106 - Import completions are being added above package declaration
  • SRBITB-11 - Repositories field validation is triggered for events that don't need a project/

7.5.0

Package declaration message

In version 7.1.0, we introduced a Script Editor warning message for invalid/missing package declarations in script files. The message stated these invalid/missing package declarations wouldn't be supported from version 9.0.0 onwards. However, this is no longer the case. We will not do anything that breaks existing usage in future releases. See this page for more information.

Bug Fixes

  • SRPLAT-2137 - Package Declaration validation incorrect when file imports another package
  • SRPLAT-2116 - CodeEditor doesn't load because of wrong MIME type
  • SRPLAT-2100 - Listeners which import classes relying on @Canonical fail after upgrade or cache clearing

7.4.0

Bug Fixes

  • SRPLAT-2059 - The code in the editor disappears when switching between the script editor tab and other SR tabs

7.3.0

New Features

  • SRPLAT-2070 - Documentation shown when we hover over import keyword in an import statement
  • SRPLAT-2058 - Automatically add a package declaration when a new file is created using script editor to avoid package name mismatch

Bug Fixes

  • SRPLAT-2097 - open redirect vulnerability
  • SRPLAT-2080 - Fragments Custom Web Item link "mailto:" not working
  • SRPLAT-2028 - Web items - URISyntaxException: Illegal character in query

7.2.0

New Features

  • SRPLAT-2055 - more tolerant parser strategy to allow completions in syntactically incorrect code
  • SRPLAT-2047 - warn if package declaration is incorrect/missing when editing a file script
  • SRPLAT-2001 - Add settings page available to all users with minimap toggle slider

Bug Fixes

  • SRPLAT-2073 - Unable to load list of slack channels if scopes to access private channels is missing.
  • SRPLAT-2068 - prevent script engine making unnecessary "file open" operations
  • SRPLAT-2063 - console script to test filesystem performance
  • SRPLAT-1922 - Slow Disk Access for Script Roots can lead to stuck thread errors under high load

7.1.0

Bug Fixes

  • SRPLAT-1993 - Inline REST model dependency jars

7.0.0

Groovy 3 Update

This is the update you have all been waiting for, we have updated ScriptRunner for Bitbucket to Groovy 3! What comes with this update and how will it benefit you? 

To start, the language parser has been reimplemented in Groovy 3 under the Parrot Parser codename. This new parser brings a number of syntax improvements which could benefit you as a user of ScriptRunner. The Groovy 3 syntax improvements include the following:

In addition, there are a handful of minor general improvements, for example new GDK methods or the @NullCheck AST transformation.

For a full list of changes see the release notes for Groovy 3

Breaking Changes

There are a number of known breaking changes in Groovy 3. The breaking changes include relocation of some classes to different packages. All the other breaking changes for Groovy 3 are listed in the release notes. There are also some additional minor breaking changes in Groovy 3.0.5. and Groovy 3.0.8.

We don't believe that any of these changes are significant, or that they should affect a large number of ScriptRunner users. However, there is a chance this update may cause some of your scripts to fail. 

If you have any issues please contact our customer support team here

SrSpecification is Deprecated

In the past, when writing tests, we provided an example to extend com.onresolve.scriptrunner.canned.common.admin.SrSpecification

SrSpecification will be removed in a future release of ScriptRunner, but is still available in the current release. From now on please use spock.lang.Specification as the base for your tests. 

Jsoup update

We have updated our internal version of Jsoup to 1.15.3 due to a potential vulnerability. The key change is the replacement of org.jsoup.safety.Whitelist with org.jsoup.safety.Safelist. Please find more information at https://jsoup.org/news/release-1.15.1.


On this page