Check out what’s new for ScriptRunner for Jira Server.


Bug Fixes

  • SRPLAT-1213 - "test on borrow" should be the default for LDAP connections

  • SRJIRA-4509 - Jira Service Desk script fields match to wrong Request Type

  • SRJIRA-4465 - toggling validity of picker field with behaviours causes re-mount

  • SRJIRA-4463 - Script Fragment Errors do not log information that users can use to find the broken fragment

  • SRJIRA-4418 - Behaviour overwrite other behaviour script

  • SRJIRA-3366 - Wrong query in "View in Issue Navigator" button

  • SRJIRA-4517 - compatibility with Jira 8.11

  • SRJIRA-4471 - Suppress com.atlassian.jira.cache.request.RequestCacheImpl logs only on Jira 8.10.0

  • SRJIRA-4451 - javax.mail.Session creation is failing in JIRA 8.10.0


JQL function: memberOfRole

Use memberOfRole to find issues where the value of a user field is a member of a given role, for example:

issueFunction in memberOfRole("Reporter", "Administrators")
issueFunction in memberOfRole('Approvers', 'Service Desk Team')

See our documentation on memberOfRole.

New Features

  • SRJIRA-4349 - You can now create an LDAP resource with Anonymous bind.

  • SRJIRA-4271 - A JQL function has been added to find issues assigned to users in a role.

Bug Fixes

  • SRPLAT-11 - An invalid user-configured raw XML script fragment could have prevented the ScriptRunner plugin from enabling.

  • SRJIRA-4405 - The lastComment("inRole Administrators") query has been optimised to take account of any project clauses.

  • SRJIRA-4388 - We fixed an issue in behaviours where the Method Selection field was not appearing, even though a file had been selected.

  • SRJIRA-4353 - The behaviour UI condition now checks the workflow step correctly for the Create Issue screen.

  • SRJIRA-3799 - In behaviours, the IssueType/Project field is no longer editable via the Create Issue screen when the Behaviour sets it to read-only.

  • SRJIRA-3766 - A Field Required error in behaviours has been fixed.


New Features

  • SRJIRA-2563 - We added support for using Behaviors with Mindville Insight custom fields.

Bug Fixes

  • SRPLAT-1171 - The Confluence-specific scriptMacroMetadataProvider module no longer shows up in UPM for all ScriptRunner products.

  • SRJIRA-4401 - There is no longer a NullPointerException when a JQL function is unavailable.

  • SRJIRA-4391 - Adding a default value to a database picker no longer causes a MethodInvocationException.

  • SRJIRA-4386 - Multi-Issue Picker field validation now works correctly when the field is set to Required using the Field Configurations.

  • SRJIRA-4323 - Picker fields are now fully functional when placed at the bottom of a form.

  • SRJIRA-4076 - The behaviour "Setting a Default Description" now works correctly when the Rich Text Editor is disabled.

  • SRJIRA-3918 - Setting a user picker value via behaviours now works in JSD portal if the logged-in user is a customer.

  • SRJIRA-2974 - Aggregate functions were not always displaying calculations when a search was performed.


Bug Fixes

  • SRJIRA-4380 - The clearError behaviour was not able to clear out setError.

  • SRJIRA-4374 - AddMissingScriptFieldConfigurationsUpgradeTask skipped custom fields.

  • SRJIRA-4373 - The ScriptRunner plugin presence broke the JSD Customer Portal loading.


Bug Fixes

  • SRJIRA-4338 - When using two select2 fields with behaviours on each, it was possible to get an infinite loop.

  • SRJIRA-4112 - When using behaviours to change options on a checkbox or radio button, field-level scripts did not run because change events were not fired.

  • SRJIRA-4032 - The setRequired behaviour method on User Picker fields could prevent the User Selection drop-down from clearing.

  • SRJIRA-2686 - When using behaviours, clearing all radio button/checkbox options prevented being able to add options.

  • SRJIRA-2416 - Behaviours did not return the value of the Sprint field as expected.


New Features

  • SRJIRA-4329 - There is now IssueContext-like access to request type name in Service Desk behaviours.

Bug Fixes

  • SRPLAT-1139 - Compilation failures in one script caused entire features to fail.

  • SRPLAT-1131 - You now have the ability to set all Hikari pool configuration parameters when using database connections.

  • SRPLAT-1094 - Autocompletion requests failed when requesting autocomplete after typing "Check".

  • SRJIRA-4334 - Making a multi-group picker read-only now disables the link to an external popup.

  • SRJIRA-4308 - The type of issue in post-function was incorrectly Issue and not MutableIssue.

  • SRJIRA-4294 - Database picker fields now use the correct RestFieldOperationsHandler.

  • SRJIRA-4280 - Single-select list fields width is no longer narrow when ScriptRunner is installed.

  • SRJIRA-4263 - Behaviours now works correctly with Chrome 81.0.4044.92+.

  • SRJIRA-4260 - Classloader cache now refreshes properly.

  • SRJIRA-4177 - Database Picker and Issue Picker fields configured for "Multiple" selection are now correctly "Required" when set to "required" via field configuration.

  • SRJIRA-4170 - The Multiple Issue Picker no longer shows an entry in the Change History of an issue when it was not changed.

  • SRJIRA-4159 - 5.6.15 no longer throws a java.lang.ClassCastException error when using an LdapTemplate.

  • SRJIRA-4027 - An issue with keyboard shortcuts and autocomplete in the browser-based Code Editor has been fixed.

  • SRJIRA-3973 - Post function "Transition parent when all subtasks are resolved" does not require a Resolution field.

  • SRJIRA-3934 - The setLabel() no longer causes a duplicate if any markup parameters are included.

  • SRJIRA-3860 - The script for reindexing scripted fields in the documentation has been updated for the Jira 8 API.

  • SRJIRA-3771 - Single-select / Multi-select list conversion no longer duplicates field (Behaviour) on Jira Service Desk Customer Portal.

  • SRJIRA-3720 - Behaviours API now recognises translated language.

  • SRJIRA-3526 - User Picker Required validation now works correctly for behaviours.

  • SRJIRA-3367 - The User-aware and Date-aware script fields now appear in the correct panel after a cache reset.

  • SRJIRA-3303 - Issue picker field now works correctly as a required field.

  • SRJIRA-2820 - The Bulk Fix Resolution built-in script now closes the SLA of the issue.

  • SRJIRA-2535 - The Bulk-Fix-Resolution built-in script now retains the original resolution date.

  • SRJIRA-2027 - Form values are now available in the Behaviours initialiser.


Bug Fixes

  • SRJIRA-4325 - Script Field - Configure screen link is broken

  • SRJIRA-4318 - Unable to create ticket issue upgrading to 6.0.1 due to missing script field config


Bug Fixes

  • SRPLAT-1119 - Classes in scriptrunner-api/spi no longer consumable by dependent plugins

  • SRJIRA-4297 - Built in script Script registry - java.lang.NullPointerException

  • SRJIRA-4295 - Exceptions during issue creation, indexing due to failed script fields upgrade


Groovy Upgrade

The version of Groovy used by ScriptRunner has been upgraded from 2.4.15 to 2.5.11. Improvements and new features (like additional AST transformations, or the new tap() method) shipped in Groovy 2.5 are now available to ScriptRunner users. See the Groovy 2.5 Release Notes for more information.

As with any dependency upgrade, breaking changes could potentially affect users' scripts. However, the breaking changes between Groovy 2.4 and 2.5 are relatively minor. The low-level nature of most of these breaking changes means they are unlikely to impact many ScriptRunner scripts if any.

Take a look at the list of breaking changes in the Groovy 2.5 Release Notes for further details.

IntelliJ Removal

This version removes all support for the IntelliJ IDEA plugin. See our previous deprecation announcement for our rationale and plans for the future.

Hidden Fields Removal

Hidden Fields custom fields, which were deprecated in version 5.6.14, have now been removed.

Please review the documentation for converting them to regular Jira fields, and other alternatives.

Use of Natural Searchers in Script Fields

Previously many users may have used the Natural Searchers for Jira plugin. Use of these searchers on script fields allows the use of gadgets such as Two Dimensional Filter Statistics and Heatmap, for these fields.

This release of ScriptRunner includes searchers similar to those provided by the Natural Searchers for Jira plugin. On installation of this version, ScriptRunner converts any usage of searchers in script fields from the plugin versions, to ScriptRunner-native versions.

If you are only using this plugin for script fields natural searchers, you can uninstall the Natural Searchers for Jira_ plugin. To check your usage of the Natural Searchers for Jira plugin navigate to *Admin → Natural Searchers.

Please see the warning message on usage.

New Features

  • SRJIRA-2335 - ScriptRunner now provides stattable/natural searchers.

Bug Fixes

  • SRPLAT-1092 - There is now DocLink support for absolute URLs.

  • SRPLAT-1084 - The autocompletion window of the Script Console now closes correctly.

  • SRPLAT-1041 - ScriptRegistry performance has been improved.

  • SRJIRA-4075 - The Custom Email post function now saves multiple values selected in To Issue Fields and CC Issue Fields.

  • SRJIRA-3080 - The binding variable 'originalIssue' is no longer incorrectly displayed for Custom Script post functions.

Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.

Ask a question about ScriptRunner for JIRA, Bitbucket Server, or Confluence.

Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.