Release 8.x

Feature Release Summary

You can explore all the feature releases we’ve introduced to ScriptRunner for Jira, starting from version 7.0.0 onwards, on the Feature Release Summary page. This page is designed to assist you in finding the ideal version to upgrade to, all while catching up on any enhancements you might have missed since your last update.

8.49.0

 

Script Registry bug fixed

The Script Registry now correctly displays all workflow functions with scripts for each transition. Previously, only one function was shown per transition, even when multiple were set up.

8.48.0

 

Bug fixed: Reindexing error following Portfolio upgrade

We've resolved a bug affecting users with issues created before a Portfolio upgrade. The issue caused errors during reindexing but has now been fixed.

Security improvement

We've improved the security of ScriptRunner for Jira by addressing a known Common Vulnerabilities and Exposure (CVE). We want to emphasize that this update doesn't mean your instance was vulnerable to security issues. We're always working to make ScriptRunner as safe as possible, and this update is part of that ongoing effort. Check out our page on Vulnerabilities and Security for more details on how we scan for vulnerabilities and common security concerns.

8.47.0

 

Bugs fixed

We have resolved the following bugs in this release:

  • Behaviours bug: We've resolved a bug related to our Behaviours feature where setFieldOptions() did not work correctly for Component fields on the JSM portal.
  • Common-runtime module bug: We resolved an issue where ScriptRunner's common-runtime module interfered with fields from other plugins.

8.46.0

 

Behaviours bug fixed

We've resolved a bug related to our Behaviours feature. Previously, when used together, setFieldOptions clashed with setFormValue for multi-select fields. This issue is now resolved. 

httpmime version update

httpmime version has been updated to version 4.5.14 to match the httpclient version. Previously, ScriptRunner for Jira had httpclient version 4.5.14 and httpmime version 4.3.1.

Vulnerability scanner updates

We have updated and added new vulnerability scanners to reduce discrepancies in your vulnerability reports. This is an internal feature and does not require any action from you.

8.45.0

 

There are only core component changes in ScriptRunner for Jira 8.45.0, so we do not have any new features or bug fixes to report.

8.44.0

 

Behaviours bug fixed

We've resolved a bug related to our Behaviours feature. This issue affected the setting of values in the JSM portal as setFieldOptions clashed with setFormValue when used together.

Active Objects initialization error fixed

When starting or restarting a Jira instance, the following error appeared in some server logs:

[com.onresolve.scriptrunner.runner.util.AOPropertyPersister] Exception thrown during AO initialization: java.lang.IllegalStateException: Unable to register initialization of Active Objects

This issue has now been fixed and the above error should no longer display.

Listeners bugs fixed

We've resolved a number of bugs related to our Listeners feature. ScriptRunner encountered errors when interacting with custom listeners triggered by events from third-party plugins. Specifically, these issues occurred during the creation, modification, or execution of such listeners. Examples of events that caused errors include the following:

  • ApprovalRequestedEvent 

  • InsightObjectAsyncEvent and its subclasses

  • TestExecutionChangedEvent

The bugs that caused the errors are now fixed and custom listeners should now work as expected. 

8.43.0

 

Behaviours bug fixed

We've resolved a bug related to our Behaviours feature. This issue affected the setting of field options for cascading fields in the JSM portal.

8.42.0

Behaviours bugs fixed

We've resolved multiple bugs related to our Behaviours feature. These issues affected the setting of values in certain multi-user picker fields, such as Approvers, when using a language other than English. The fields should now work as expected. If you experience any problems, please contact our support team.

Documentation update: Removal of legacy versions

In the next few weeks, we will be phasing out all 6.x.x and 7.x.x versions of our documentation from public access. While this change is not expected to impact most users, we recommend taking the following actions:

  • Review your bookmarks: If you have any saved links to our documentation, please verify that they don’t point to versions that will be removed.
  • Update your references: Ensure that you’re using the most current documentation version for your needs.

If you have any concerns, please contact our support team.

8.41.0

 

This has not been released for Server.

Product update

There are only core component changes in ScriptRunner for Jira 8.41.0, so we do not have any new features or bug fixes to report.

Library update: Example scripts have moved to ScriptRunner HQ

Adaptavist Library has been renamed to Example Scripts and all scripts have been moved to their new home on the ScriptRunner HQ website. These example scripts now live alongside the tutorials, case studies and other content designed to help you get the most from ScriptRunner. For more information, check out our blog on this update.

This update does not affect in-app example scripts, which will continue to function as usual.

8.40.0

 

There are only core component changes in ScriptRunner for Jira 8.40.0, so we do not have any new features or bug fixes to report.

8.39.0

 

Security improvement

In this release, we've focused on improving the security of ScriptRunner for Jira by addressing a known Common Vulnerabilities and Exposure (CVE). We want to emphasize that this update doesn't mean your instance was vulnerable to security issues. We're always working to make ScriptRunner as safe as possible, and this update is part of that ongoing effort. Check out our page on Vulnerabilities and Security for more details on how we scan for vulnerabilities and common security concerns.

New: In-app feedback

In this release, we have introduced a new feedback system to improve the way we gather user insights. You may encounter notifications linking to surveys, which offer a convenient method to share your thoughts about the product.

The notifications will not appear:

8.38.0

 

Resources update

We have removed some visibility of passwords within Resources. This change is designed to enhance security by preventing credentials from being viewed by other Jira administrators.

Security improvement

We've improved the security of ScriptRunner for Jira by addressing known Common Vulnerabilities and Exposures (CVEs). We want to emphasize that this update doesn't mean your instance was vulnerable to security issues. We're always working to make ScriptRunner as safe as possible, and this update is part of that ongoing effort. Check out our page on Vulnerabilities and Security for more details on how we scan for vulnerabilities and common security concerns.

Behaviours bug fixed

Previously, when customers submitted requests through the customer portal, Behaviours did not function as intended. This issue has been resolved and Behaviours now operate correctly within the customer portal.

8.36.0

 

Bugs fixed

In this release, we focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information:

  • SRJIRA-7589 - Behaviours is not triggered when clearing the Assets field value (platform 6)

8.35.0

 

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue below for more detailed information.

  • SRPLAT-1209 - Setting REST endpoint package to scan to empty value does not work

8.34.0

 

Chrome and Edge v127 Behaviours issue fixed

Google Chrome (v127) and Microsoft Edge (v127) deprecated Mutation Events which impacted several Behaviour methods and caused some Behaviours to break. We have fixed this issue.

Recommendations

We recommend you upgrade to ScriptRunner version 8.34.0 where possible. If you are experiencing difficulties but cannot upgrade, workarounds are available. Please reference SRJIRA-7385 or reach out to our support team who will be happy to assist.

Switch user vulnerability fixed

We have patched a vulnerability related to the Switch User feature.

New features

  • SRJIRA-7385 - Mutation Events was deprecated in Edge/Chrome 127 breaking Behaviour

8.33.0

 

Bugs fixed

In this release, we focused on fixing bugs to improve your experience of ScriptRunner for Jira Data Center. For more detailed information, see the Jira issue in the table below.

  • SRJIRA-7047 - MailHandler uses removed constructor for NonQuotedCommentHandler

8.32.0

 

Compatibility with Jira 9.17 (with known issue)

We are now compatible with Jira 9.17, however we have a known issue when running ScriptRunner with Jira Service Desk 5.17. An issue may occur if you have a script that amends an Assets custom field and performs an approval. The Assets field will update successfully, however the approval will be unsuccessful. We are working on this issue and you can track our progress here

New: Example script

We've created a new Example script that allows you to set the field value from a user property. You can also find this script through the Example Scripts modal. 

UI improvement: Workflow functions

We've updated our workflow functions to include the ScriptRunner logo so you can easily identify ScriptRunner workflow functions within Jira. 

Image showing the scriptrunner logo next to workflow functions

New features

  • SRJIRA-7280 - Example script (Scripted Fields): Set Field Value From User Property
  • SRJIRA-7187 - ScriptRunner Icon in Workflow Functions List

Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-7298 - Behaviour does not work on customer portal if Share With or js-share-with-organisation-picker dropdown shown

8.31.0

New: Example scripts

We've created two new Example scripts that you can use in your instance:

  • Set field value from user property using Behaviours: Use this script in Behaviours to automatically set a custom field value based on the assignee's email.
  • Search and link issues: Use this script to search for issues via a JQL query and link them to an issue.

You can also find this script through the Example Scripts modal. 

New features

  • SRJIRA-7182 - Example script (Behaviour): Set Field Value From User Property
  • SRJIRA-7181 - Example Script: Search and Link Issues

Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-7295 - Fragment Locator "See More Fragments" Button Not Redirecting
  • SRJIRA-3095 - Issue with Exocet integration

8.30.0

 

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-7293 - getBinding()?.customField?.name shows compilation error on Scripted Fields Docs page
  • SRJIRA-6907 - Issue Archiving Job is archiving approximately half the issues in JQL query

8.29.0

 

Compatibility with Jira 9.16.x

ScriptRunner for Jira is now compatible with Jira 9.16.x. ScriptRunner version 8.28.1 is also compatible with Jira 9.16.x.

Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information.

  • SRJIRA-7164 - Setting the Cascade Select List to required doesn't seem to work on JSM

8.28.1 

 

Compatibility with Jira 9.15.x

ScriptRunner for Jira is now compatible with Jira 9.15.x. 

8.28.0 

 

Bugs fixed

In this release, we focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information.

  • SRJIRA-7205 - The Server-Side Behaviour doesn't seem to work for the Approver field on the JSM Portal

8.27.0 

 

New: Example script

We've created a new Example script that allows you to remove unused workflow schemes. You can also find this script through the Example Scripts modal. 

New features

  • SRPLAT-2428 - Update Empty State Images for Dark Mode Compatability
  • SRJIRA-7096 - Add a library script to remove unused workflow schemes


Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-7159 - disableTab()/enableTab() Methods Affects the Wrong Tab When There are Hidden Tabs

  • SRJIRA-6996 - Field(s) required built in validator doesn't work for Attachments on Create transition

  • SRJIRA-6853 - Behaviour setFieldOption for multi select elements does not reset to default value


8.26.0 

 

Fragments improvements

We have made the following improvements to UI Fragments:

  • Updated the UI so fragment locations appear as buttons.

    Currently, this update only applies to UI Fragments that have related binding information. 

  • Added the ability to create a UI fragment directly from fragment locations that appear as buttons. 
  • Added the copy function to fragment locations that appear as buttons. 

New: Example script

We've created a new Example script that allows you to remove unused screens. You can also find this script through the Example Scripts modal. 

New features

  • SRPLAT-2395 - All Users: Enabled Locator: New Button
  • SRJIRA-7156 - UX: Menu item for create multiple fragments
  • SRJIRA-7149 - Create Fragment from Location
  • SRJIRA-7101 - Add library script to remove unused screens

Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-7018 - Asset Object actions modules (for Automation for Jira) are not loaded after the system restarts

  • SRJIRA-2890 - {CURSOR} tag in template comments can cause the following line break to be selected


8.25.0 

 

Fragments improvements

We have made the following improvements to Fragments:

  • Updated the name to UI Fragments to better reflect its purpose. 
  • Updated the UI Fragments view page so your UI fragments are easier to recognize and navigate.

New: Example scripts

We've created two new example scripts:

You can also find these scripts through the Example Scripts modal. 

Documentation update: Improved workflow functions tutorials

We've improved the Workflow Functions Tutorial pages with more examples with easy step-by-step instructions. 

New features

  • SRPLAT-2415 - Rename "Fragments" to "UI Fragments" in SR tabs section
  • SRJIRA-7100 - Add a library script to remove unused screen schemes
  • SRJIRA-7099 - Add a library script to remove unused issue type screen schemes
  • SRJIRA-7041 - Add last modified/modified by fields to fragments view table

Bugs fixed

In this release, we've also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information.

  • SRPLAT-2379 - Script Editor layout is broken for Jobs/Listeners/Macros when Expanded and switched from Inline to File
  • SRPLAT-2372 - ExecutionError: java.lang.StackOverflowError
  • SRJIRA-7019 - Behaviour initializer doesn't take effect in the customer portal if an Asset field is mapped to the behaviour

8.24.0

 

Fragments update

You can now copy the location path of a fragment from the binding information window when the fragment locator is turned on. Check out our documentation for more information on script fragment locations

This feature is location-dependent, as not all locations have binding variables associated with them. 

New support portal

Our Adaptavist Support Portal moved! Visit the new location here. Please update your bookmarks.

Visit this page for help logging into the portal.

New features

  • SRPLAT-2396 - All Users: Enabled Locator: Binding Information

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information.

  • SRJIRA-6843 - 'Security Level' field default value is not preserved when Behaviour is enable

8.23.0

 

Compatibility with Jira 9.14.x

ScriptRunner for Jira is now compatible with Jira 9.14.x. 

New features

  • SRJIRA-7074 - Prepare for compatibility with Jira 9.14

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issue in the table below for more detailed information.

  • SRJIRA-6981 - Behaviour setRequired() message still shows even the Multiple User Picker field has value during creation in Customer Portal

8.22.0

Compatibility with Jira 9.13.x

ScriptRunner for Jira is now compatible with Jira 9.13.x. 

Documentation update: new ScriptRunner JQL AI

If you're not sure where to start with JQL Functions or are in need of a quick search filter, try out our new ScriptRunner JQL AI. With this tool, you can simply type in what you would like to search for, and it will provide you with your search in JQL format. 

Documentation update: new custom script field example

We've created a new custom script field example for you to use and follow. With this custom script field you can show the work remaining in all issues in an epic.

8.21.0

 

Script editor refresh

The Example Scripts modal is now accessible on the Script Editor page using the button. In addition, we have moved the Help and Fullscreen buttons so they sit above the code editor for easy accessibility. 

We have also made the type checking dialog more prominent so you can easily see when there is an error with your code. 

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRPLAT-2382 - Errors binding events in 'Send Email' Listener
  • SRPLAT-2366 - Prevent unauthorised user redirection form our SR switchuser-endsession endpoint
  • SRJIRA-7021 - Behaviour Initialiser/Server-side scripts on Customer Portal are not triggered when there's Asset Object field(Multiple OR/AND Option to add all objects enabled)
  • SRJIRA-7015 - setFormValue() Not Working on Asset Field in JSM Portal
  • SRJIRA-6988 - Behaviour read-only on 'Project' field is updatable if clicked on the icon
  • SRJIRA-6983 - Simple asset updates cause Asset Triggers to throw exceptions when a field value changed Automation rule is enabled
  • SRJIRA-6947 - Read-only Asset field still allows delete from field
  • SRJIRA-6919 - Behaviour does not trigger when pressing Asset Object's Add All button in Customer Portal

8.20.0

 

New Duplicate feature for Fragments

You can now duplicate a script fragment from a fragment's ellipsis menu. Check out the Script Fragments page for more information. 

Vendors API update

We've listened to feedback about our Vendors API and have implemented some changes:

  • We've added support for asynchronous Promises in Vendors API getValue()
  • We've added isPopulated optional method to API, to determine if the field is populated with data, and inform ScriptRunner of mandatory fields not filled in.

Documentation update: new Feature Release Summary page

We've created a new Feature Release Summary page, where you can explore all the feature releases we've introduced to ScriptRunner for Jira, starting from version 7.0.0 onwards. This hub is designed to assist you in finding the ideal version to upgrade to, all while catching up on any enhancements you might have missed since your last update.

New features

  • SRJIRA-6944 - Duplicate a Fragment

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6995 - Select List (cascading) is not set-able in Customer Portal
  • SRJIRA-6949 - Compilation errors in Custom JQL Function Examples
  • SRJIRA-6939 - Add support for asynchronous Promises in VendorsAPI getValue()
  • SRJIRA-5280 - JQL sorting of key does not work in Issue Picker Script Field

8.19.0

 

Compatibility with Jira 9.12.0

We have fixed the bug where users are unable to set values on user multi-picker fields, such as the Approvers field, using Behaviours. ScriptRunner for Jira is now fully compatible with Jira 9.12.0.

Bug fixed

  • SRJIRA-6976 - Unable to set values on user multi-picker fields using behaviours in Jira > 9.12.0 in Service Desk context

8.18.0

 

Compatibility with Jira 9.12.0 (with known bug)

ScriptRunner for Jira is now compatible with Jira 9.12.0. We are aware of a bug where users are unable to set values on the Approvers field using Behaviours. This issue occurs on the Service Desk portal.

If you don't use this functionality, there are no known compatibility issues with ScriptRunner on Jira 9.12.0.

We will endeavor to fix this bug as soon as possible. If you have any issues you believe to be related to this bug, please don’t hesitate to contact our support team.

Fragment locator update

The fragment locator on the Script Fragments page has been updated to a toggle button for better visibility. Previously the locator was a clickable link.

New web panel example script

A new example script is available for when you create a web panel fragment. This new script provides you with a simple example of a colored banner. 

Documentation update: new Script Fragments tutorial

We have created a new Script Fragments tutorial that guides you through key terms and some easy-to-follow Script Fragment examples. 

New features

  • SRJIRA-6955 - Compatibility with Jira 9.12.0
  • SRJIRA-6954 - Update A4J titles
  • SRJIRA-6945 - Make enabling Fragment locator prominent
  • SRJIRA-6943 - Add a snippet to Fragments Script Examples Modal

8.17.0

 

New Example scripts modal

The Example scripts modal is your go-to destination for finding basic script examples (formerly snippets) and Example scripts without having to leave the ScriptRunner app. This modal replaces the Show snippet section.

To access this modal, you can select the Example Scripts button in any code editor within ScriptRunner. Learn more about this new modal on the Example Scripts page.

Code editor refresh

In addition to the new Example Scripts modal we have redesigned the code editor so it’s even more user-friendly. We have moved the Help, Expand editor and Fullscreen buttons so they sit above the code editor and are easily accessible. We've also made the type checking dialog more prominent so you can easily see when there is an error with your code. 

Fragment location removed

The fragment location null/system.admin.header.pageactions has been removed. If you update to version 8.17.0 and you're using this location in a fragment, you will need to update the fragment location to system.admin.header.pageactions.

Fragment locator available in more places

You can now enable/disable the fragment locator from within a script fragment. Previously you could only enable/disable the fragment locator from the Fragments feature page. 

New features

  • SRJIRA-6705 - Locator available from create/edit screen

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6931 - Library script breaks when project group permission uses the Anyone on the web group name
  • SRJIRA-6891 - Clean up list of fragment locations
  • SRJIRA-4864 - Configuration Exporter Built-in Script doesn't export Escalation Jobs
  • SRJIRA-4704 - Select2 based fields are not getting disabled on IE11 in ServiceDesk
  • SRJIRA-4175 - Validator "Has not run yet" when using old workflow

8.16.0

 

Behaviours bug fixed

We have fixed a bug (SRJIRA-6929) related to the Behaviours mapping issue that has impacted ScriptRunner for Jira versions 8.12.0 to 8.15.0. If you upgrade and encounter any problems with behaviours, please don't hesitate to contact our support team.

Update: Vendors API

The getting value now works with all fields with our Vendors API. Previously this value did not work with some vendor API text fields. 

Additional bugs fixed

In this release, we have also focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6929 - Behaviours Upgrade Task does not adequately clear cache in some instances

  • SRJIRA-6842 - The Behaviour is not working for the Cascading List on the Portal page for JSM 5.10.0 and above

  • SRJIRA-5694 - Incorrect result in subscription email using search filter with JQL issueFunction in addedAfterSprintStart()

  • SRJIRA-5373 - clearError() not working when apply setFieldOptions() on checkbox field

  • SRJIRA-53 52 - Behaviour getValue() does not detect value in the field

  • SRJIRA-5033 - Mapping issue when applying Readonly on Priority field 

  • SRJIRA-4439 - Wrong icon for epic and story types in Behaviours

  • SRJIRA-4432 - Behavior's script does not work if one of the field is set to Required in field Configuration

8.15.0

 

8.12.1 bug fixed

We are pleased to inform you that we have now resolved the Behaviours mappings bug in version 8.12.1 of ScriptRunner for Jira. Please note:

  • If you have already upgraded to version 8.12.1, or 8.14.0, and your behaviours are functioning properly, you can now proceed with confidence to upgrade to version 8.15.0.
  • However, if you upgraded to version 8.12.1, or 8.14.0, and are still experiencing any issues with your behaviours please contact our support team. We will guide you through resolving this issue.
  • If you have been using ScriptRunner for Jira 8.11.0 or earlier, you should be able to upgrade to 8.15.0 without issue. We have conducted thorough regression testing prior to this release, but if you do encounter any problems with behaviours after the upgrade, please don’t hesitate to contact our support team.

Additional updates

  • SRJIRA-5882 Update 'Adding organizations when a Service Management issue gets created' documentation script

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6902 - Behaviours ID Migration Upgrade may break mappings due to case sensitivity

  • SRJIRA-6855 - Server-side Behaviour scripts are not executing when required Single Select List custom field values are changed in the JSM Service Desk Portal

  • SRJIRA-4960 - Some Web Panels are still visible even if the condition is false

  • SRJIRA-4002 - Search Template for Database Picker missing

8.14.0

 

8.12.1 Bug Fix Update (1st November 2023)

We are pleased to inform you that we have now resolved the Behaviours mappings bug in version 8.12.1 of ScriptRunner for Jira. For more information please see the the release notes for 8.15.0.

New: Vendors API

We have developed a new API for Atlassian Marketplace Vendors to use with their custom Jira fields to make them compatible with our DC Behaviours feature. Find out more details on the Vendors API page.

This is not a feature you'll be able to see in the app directly. This feature will let plugin creators define their fields in a ScriptRunner-compatible way which allows your Behaviours to interact with their fields. 

HAPI breaking changes

We have moved the location of a number of exceptions which may cause a breaking change for you if you have used them in a script. Find out more details in the HAPI Changelog

New documentation: Fragment locations

We've created the following new pages on Fragment locations to make it easier for you to understand, and identify, web item and web panel locations:


  • SRJIRA-6703 - Improve visibility of fragment locations
  • SRJIRA-2139 - Document setAllowInlineEdit

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6757 - If a project has more than 100 versions, and a Version field is filtered via Behaviour to only display version(s) that are not immediately visible in the Version drop down, e.g. the 101st version, the Version field becomes empty
  • SRJIRA-5525 - Delete action on the scripted workflows page errors on successful deletion
  • SRJIRA-5438 - Behaviour read-only trigger for Projects outside the mapping
  • SRJIRA-5434 - Copied workflow shows the same execution history as source despite changes
  • SRJIRA-5162 - Insight Object/s field not searchable by typing and the position of cursor is indented after setFormValue(null)
  • SRJIRA-3975 - Release page thrown error after enable Fragment Locator
  • SRJIRA-3671 - Create a subtask on post function copying all fields

8.12.1

 

8.12.1 Bug Fix Update (1st November 2023)

We are pleased to inform you that we have now resolved the Behaviours mappings bug in version 8.12.1 of ScriptRunner for Jira. For more information please see the the release notes for 8.15.0.

We are pleased to inform you that we have now resolved the bug in the Behaviours update task in version 8.12.0 of ScriptRunner for Jira. Please note:

  • If you have already upgraded to version 8.12.0 and your behaviours are functioning properly, you can now proceed with confidence to upgrade to version 8.12.1.
  • However, if you upgraded to version 8.12.0 and are still experiencing any issues with your behaviours please contact our support team. We will guide you through resolving this issue.
  • If you have been using ScriptRunner for Jira 8.11.0 or earlier, you should be able to upgrade to 8.12.1 without issue. We have conducted thorough regression testing prior to this release, but if you do encounter any problems with behaviours after the upgrade, please don’t hesitate to contact our support team.

8.12.0

 

8.12.1 Bug Fix Update (1st November 2023)

We are pleased to inform you that we have now resolved the Behaviours mappings bug in version 8.12.1 of ScriptRunner for Jira. For more information please see the the release notes for 8.15.0.

New Automation for Jira actions and triggers (Beta)

We've developed new actions and triggers for you to use in Automation for Jira:

With these actions and triggers, we've provided a simple way for you to work with Assets (Insight) in Automation for Jira rules. 

Update to Behaviours configuration

We have updated Behaviours to use a new unique identifier. This change mainly impacts users who migrate behaviours using the migration guide or a third party tool.

If you upgrade to this release (8.12.0) and migrate Behaviours, you must make sure the Jira version you are migrating the Behaviours to has the same version of ScriptRunner. In addition, if you downgrade after upgrading to 8.12.0, your Behaviours will stop working. As always, we recommend validating upgrades in your test environment first.

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6827 - `multiValueDelimiter = '<br />'` causes "Broken custom field" when previewing only
  • SRJIRA-6791 - When a Behaviour Initialiser is added to filter the Issue Picker, it appears that the Parent Link from Advanced Roadmaps is not able to display the linked issue.
  • SRJIRA-5300 - Behaviours' getValue() fails to retrieve Insight Referenced Objects field on Customer Portal
  • SRJIRA-5238 - Behaviour setHelpText is not working when added to a server-side script of a checkbox field
  • SRJIRA-4518 - Simple Scripted Validator - Cascading Selects throws errors
  • SRJIRA-4462 - if you Hide some development-integration locations with the "Hide system or plugin UI element" fragment it breaks the versions page
  • SRJIRA-4122 - When editing an existing ticket changing Cog Configure Field Options from All to Custom vice-versa Causes value in Read-Only field to go missing
  • SRJIRA-3836 - Dialog too small with Database picker

8.11.0

 

New Automation for Jira actions (Beta)

We've developed new actions for you to use in Automation for Jira:

With these actions, we've provided a simple way for you to work with Assets (Insight) while creating rules in Automation for Jira. 

Behaviour bug fixed

We have fixed a bug (SRJIRA-6796) that caused our Behaviours feature to work incorrectly in the Jira Service Desk portal when triggering off of a Select list.

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6825 - NPE when using hapi to set a project picker field during issue creation
  • SRJIRA-6804 - On JSM 5.10.1, a Server-Side Behaviour for a List cannot make a hidden field visible or required
  • SRJIRA-6802 - On the JSM 5.10.1, when a Behaviour to filter the Single-Select List is added, it makes the List uneditable and displays like a Multi-Line Text Field
  • SRJIRA-6796 - Behaviour in Servicedesk Portal Jira 9.10 is not working/trigger when the Select List (single/multiple choice) field value changes.
  • SRJIRA-6668 - The Linked Issues field incorrectly triggers behaviours default values warning popup 
  • SRJIRA-5993 - Web Item is not showing nested Web Section 
  • SRJIRA-5610 - setReadOnly not working properly with Visual mode for multiline text field 
  • SRJIRA-5078 - Behaviour setFormValue() doesn’t work for (Wiki Style Renderer) Multi-line Text field if transition made from Kanban Board
  • SRJIRA-5025 - "You have temporary access to administrative functions." link still showing after Switch User from Built-in Script
  • SRJIRA-4579 - Behaviour - database picker field script doesn't run on field changed after multiple refresh page
  • SRJIRA-4244 - When an Issue and its Links are Cloned - Additional issue actions: issue is null 
  • SRJIRA-3825 - autocomplete suggestions appear below the window

8.10.0

 

HAPI update

We've developed HAPI updates for retrieving user date information and linking/unlinking issues with the issue type ID. Find out more details in the HAPI Changelog

New features

  • SRJIRA-6671 - Ability to link/unlink with an issue type ID
  • SRJIRA-6622 - HAPI feature request - to be able to get the Application Users creation date

8.9.0

 

User interface update to Listeners, Jobs, and Fragments

The Note field has been updated to Name for Listeners, Jobs, and Fragments. We have also made the Name field more prominent on the main pages for Listeners, Jobs, and Fragments, so you can easily identify your configurations. 

New features

  • SRPLAT-2297 - Changes to the Notes field

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

  • SRJIRA-6651 - Asset Reference Object field in portal does not trigger behavior on value change
  • SRJIRA-5386 - Behaviour Comment field set to required not working properly in Jira Service Management Project when the condition run in specific Workflow action
  • SRJIRA-4452 - Problem in Rendering the Scripted Field on the Dashboard Gadget if Specific Issue Type(s) are selected in the Scripted Field's Custom Field Configuration
  • SRJIRA-4124 - Custom Web Item firing twice when invoked from the Issue Panel on a Kanban board

8.8.1

Bugs fixed

  • SRJIRA-6787 - 500 errors when both automation for jira and automation for jira lite is installed
  • SRJIRA-5282 - Behaviour hidden function doesn't work initially on comment field
  • SRJIRA-5065 - Incorrect Warning message displayed in when set templates in the description field for two issue types in Visual mode using Behaviour
  • SRJIRA-4727 - Unable to create issue via Confluence if epic link is set to required using simple scripted validator
  • SRJIRA-3742 - Scripted Fields using "Number Field" Template do not show decimal values correctly in French Profiles

8.8.0

 

Script plugins update

We've done some work on the infrastructure supporting script plugins. As part of this, resources can now be exported and worked on in a script plugin. We are aiming to get closer to feature completion in the coming months.

Dynamic forms update

You can use optionsGenerator within the select list annotation to customize your own list options. This is useful if you can't find a dynamic form annotation that is suitable for your purpose.

New HAPI code helper

We've added a HAPI code helper, also known as a linter, that detects where your scripts can be simplified with HAPI code and suggests an alternative. Find out more details, and information about how to enable/disable this feature, on the HAPI Code Helper page.

Documentation update: HAPI examples

We've created multiple new examples that incorporate HAPI in the scripts, ready for you to explore and customize to your Jira instance. Visit the new HAPI examples page to find out more. 

Bugs fixed

  • SRPLAT-2310 - @Select annotation should not default to first option
  • SRPLAT-2309 - allow @Select annotation to take a closure to generate options
  • SRPLAT-2116 - CodeEditor doesn't load because of wrong MIME type
  • SRJIRA-6747 - setOrganizations doesn't have add/remove/replace functionality
  • SRJIRA-3992 - Require a comment on transition validator does not display error message on Service Desk Projects

8.7.1

 

Jira compatibility

ScriptRunner for Jira is now compatible with Jira 9.10. 

8.7.0

 

Dynamic forms update

The workflow scheme picker field, which allows workflow selection, has been added as a dynamic form field. Check out the Dynamic Forms page for more information. 

HAPI update

We've developed HAPI updates for using dot notation with Assets/Insight. We have also developed HAPI for working with issue, entity, and user properties. Find out more details in the HAPI Changelog

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

New features

  • SRJIRA-6699 - Making behaviour works on insight field even the current user has no access to the object schema
  • SRJIRA-6678 - Add 'Workflow Scheme Pickers' to Dynamic Forms

Bugs fixed

  • SRJIRA-6729 - support dotted notation when retrieving attribute values
  • SRJIRA-6713 - add HAPI propertyset support for AppUser
  • SRJIRA-6468 - Creating issues with constrained create issue dialog no longer triggers page auto-refresh
  • SRJIRA-5512 - Behaviour unable to set a value on a Component field after calling setFieldOptions on it on ScriptRunner 6.30.0+
  • SRJIRA-5376 - Copy project-specific dashboard and filters doesn't copy dashboards
  • SRJIRA-5346 - Using Behaviour, the Warning message gets thrown when switching Issue Type
  • SRJIRA-5150 - Warning flag displayed without switches the project/issue type
  • SRJIRA-4995 - UserMessageUtil does not show flag message on Listener Event "ProjectRoleUpdatedEvent"
  • SRJIRA-4922 - Behaviour setFormValue on the User Picker custom field cause issue creation stuck
  • SRJIRA-4106 - Behavior Cursor Jumping Between Fields

8.6.0

 

Dynamic forms update

The permission scheme picker field, which allows scheme selection, has been added as a dynamic form field. Check out the Dynamic Forms page for more information. 

HAPI update

You can now reindex issues with HAPI. Check out the Reindex Issues documentation to learn more about reindexing issues.

New features

  • SRJIRA-6679 - Add 'Permission Scheme Pickers' to Dynamic Forms

  • SRJIRA-5844 - Ability to access the FieldScreenLayoutItemCreatedEvent through via a custom listener

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

Bugs fixed

  • SRJIRA-6701 - IssuesIterator toString only works as designed when there are exactly 10 issues
  • SRJIRA-6135 - Built-in Field(s) required condition documentation link not pointing to the correct URL
  • SRJIRA-5851 - setFormValue does not remove manually added issue links
  • SRJIRA-5838 - Column in HTML export for database picker field showing ID instead of selected title
  • SRJIRA-5669 - Behaviour initialiser shows previously edited initialiser script from another Behaviour
  • SRJIRA-5639 - Behaviour setLabel is not working for 'Issue Type' field in edit screen
  • SRJIRA-5638 - Behaviour setFormValue is not working on 'Customer Request Type' field from JSM
  • SRJIRA-5623 - setReadOnly not working properly with Visual mode for Description field
  • SRJIRA-5596 - Fragment for Board Context menu item always fire twice
  • SRJIRA-5479 - When viewing a listener script in full screen, autocomplete suggestion does not appear below cursor
  • SRJIRA-5342 - Web Item Fragment REST Endpoint run twice in Issue detail view
  • SRJIRA-5177 - Read-only userpicker can be edited after set with empty value using Behaviour
  • SRJIRA-4497 - Behaviours display wrong mapping
  • SRJIRA-4369 - Guide example for "Checking sibling subtasks" simple scripted validator is incorrect
  • SRJIRA-4348 - Disabled workflow condition "return false" is true when in "Any of" group
  • SRJIRA-4205 - getValue() return null when a number field value has comma
  • SRJIRA-4084 - Low readability of readonly fields in Chrome, Safari

8.5.0

 

New built-in Listener

There is a new Execution failure notifier you can use to listen for script execution failures in your instance and to notify you of the failure. Check out the Execution Failure Notifier page for more information.

HAPI update

We've developed HAPI updates for creating an issue and Assets. Find out more details in the HAPI Changelog

Bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the tables below for more detailed information.

New Features

  • SRJIRA-6670 - Ability to create an issue with issue type ID


Bugs Fixed

  • SRPLAT-2116 - CodeEditor doesn't load because of wrong MIME type
  • SRJIRA-6683 - ability to count the results of an Assets AQL/IQL query efficiently
  • SRJIRA-6681 - retrieving custom fields for @CustomFieldPicker is very slow
  • SRJIRA-6674 - Inline edit of IssueType or Label field with Behaviour doesn't switch to appropriate tab in edit screen
  • SRJIRA-6672 - myProjects JQL function does not see uptodate role info due to Jira bug
  • SRJIRA-6278 - "Clones an issue, and links" Listener bypasses required fields
  • SRJIRA-6210 - Insight custom field (multiple) read-only not working
  • SRJIRA-6092 - Getting error when using 'Constrained create issue dialog' in Board Issue detail view
  • SRJIRA-5704 - Script Listener event classes not recognized in Script Registry cause false checkerrors
  • SRJIRA-5686 - Behaviour "secure/CreateIssueDetails.jspa" screen error, stops behaviour(s) from loading
  • SRJIRA-4407 - Restricting Issue Type does not work on pop-up create screen
  • SRJIRA-4276 - Restricting issue Types with behaviours impacts "Move" Issue page when you choose a different Project

8.4.0

 

Documentation updates

We've identified another breaking change in Groovy 4 that can impact those who use the @Grab annotation to import certain external libraries. The Groovy 4 Breaking Change for Grab Annotations page has more information on this breaking change and solutions on how to fix it. 

Visit the new Vulnerabilities and Security to inform you on how we scan for vulnerabilities and common security concerns.  

New bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

Bugs Fixed

  • SRPLAT-2293 - reduce number of files written to classes directory
  • SRPLAT-2234 - Empty result set in Local DB connection test return NullPointerException
  • SRJIRA-6645 - SQL result shows "null" after clicking the "Preview" button
  • SRJIRA-6606 - Slow load times when clicking on issues after searching
  • SRJIRA-6553 - Script file is not changed if user does not click outside of the field
  • SRJIRA-6496 - Inconsistent override warning flag behaviours when conditioned on a select field
  • SRJIRA-6493 - Select list conversion behaviour convertToSingleSelect not clearing the field
  • SRJIRA-6481 - Behaviours can't set values of single-select lists that use the autocompleterenderer
  • SRJIRA-6456 - Calling Behaviour methods on 'Issue Type' system field will not disable its inline editing
  • SRJIRA-6355 - Components setFormValue is not working properly with huge Components list
  • SRJIRA-6287 - Error on method builder() while using data (Third party app: Extension for Jira Service Management) from Bundled Fields with Script Console
  • SRJIRA-5161 - Using behaviour to set field to be read-only, required and with help text causes error
  • SRJIRA-5144 - Behaviour setRequired does not work if field's display name on Customer Portal has double quotation marks
  • SRJIRA-4108 - Database Picker doesn't work in JSD Portal when the zoom is applied
  • SRJIRA-3631 - StoreException is thrown with Behaviour in the Comment field for JSD
  • SRJIRA-3493 - Limiting Issue Types with behaviour does not work for several browsers
  • SRJIRA-2830 - Using Quick Actions/Keyboard Shortcuts (e.g: "." or "gg") circumvents the Read-Only attributes of Behaviours
  • SRJIRA-2735 - Attempted inline edit of field with behaviour opens edit screen but doesn't switch to appropriate tab

8.3.0

 

HAPI update

You can now update comments using HAPI. Check out the Work with Comments page to learn more about what you can do with comments.

Snippets are now available for a custom script field

You will now see snippets when adding or updating a custom script field. You can use these snippets to help you develop a script for a script field.

New bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

New Features

  • SRJIRA-6545 - Updates for comments

Bugs Fixed

  • SRJIRA-6571 - Inconsistent setFormValue on Text Fields with Text Effects
  • SRJIRA-6560 - Keyboard shortcuts are enabled even when a Custom Web Item AUI dialog is open
  • SRJIRA-6273 - Close brackets are missing in Docs Script Field Example Script 
  • SRJIRA-5435 - Fix Version/s field that has been set as read-only via Behaviour remain editable

8.2.1

 

Bugs Fixed

  • SRPLAT-2289 - The 'Script Root' window in Script Editor cannot vertically scroll at version 8.0.0
  • SRJIRA-6608 - STC error shows for valid arguments with Multi Select fields

8.2.0

 

New bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the table below for more detailed information.

Bugs Fixed

  • SRPLAT-2280 - Spread operator shows STC errors for varargs methods

  • SRJIRA-6640 - Read Only Component still allows delete from field

  • SRJIRA-6629 - Workflow crashing when you cancel on edit workflow screen

  • SRJIRA-6605 - Behaviour for a Multi Picker field still allows you to delete values with Read Only enabled

  • SRJIRA-6599 - Behaviours server-side script automatically set Priority field value

  • SRJIRA-6494 - Readonly Labels Field can be modified

  • SRJIRA-6477 - Behaviour Priority setFieldOptions changes the existing value in Edit Screen

  • SRJIRA-6467 - setError() do not persists if user move away from Edit screen (Issue Detail View)

  • SRJIRA-6215 - Custom Picker set to Multiple Option returns a NullPointerException if the options are cleared from the view screen.

8.1.0

 

HAPI update

We've developed HAPI updates for comments and Assets. We've also simplified some examples for accessing links or attachments during a workflow transition. Find out more details in the HAPI Changelog

New bugs fixed

In this release, we've focused on fixing bugs to improve your experience of ScriptRunner for Jira Server/Data Center. See the Jira issues in the tables below for more detailed information.

New Features

  • SRJIRA-6546 - Ability to delete a comment

Bugs Fixed

  • SRPLAT-2282 - 3.0.1-b10 version of javax.el has CVE

  • SRPLAT-2281 - IllegalAccessException within DiagnosticsExecutionHandlerImpl

  • SRPLAT-2278 - Remove the errors if the script executes successfully

  • SRPLAT-2274 - allow rest endpoints to handle file uploads

  • SRJIRA-6614 - Behaviours: Using a server-side script on the Priority field to set the priority field causes an infinite loop

  • SRJIRA-6604 - type-safe way of retrieving Assets attribute values

  • SRJIRA-6570 - Execution history for Workflow scripts is not showing in the Workflow view

  • SRJIRA-6314 - Behaviours stopped react to Insight Fields on Customer Portal with JSM 5.2.0

  • SRJIRA-6165 - Behaviour does not set Insight Field as ReadOnly in Customer Portal

8.0.0

 

Groovy 4 update

We have updated ScriptRunner for Jira Server/Data Center to Groovy 4!

Our primary motivator for this update is to provide support for JDK 17. Groovy 3 doesn't support JDK 17, and with Jira 9.5.0 and Confluence 8.0 being JDK 17 compatible, an upgrade to Groovy 4 is necessary.

So, apart from JDK 17 compatibility, what comes with this update and how will it benefit you? 

New features in Groovy 4

The following are the most significant new features that have been added in Groovy 4 :

Please have a look at the Groovy 4 Release Notes for a complete list of new features.

Breaking changes in Groovy 4

Groovy 4 contains a number of breaking changes. The ones which are the most significant, and likely to affect ScriptRunner users, are listed below. Please have a look at the Groovy 4 Release Notes for a complete list of breaking changes.

1) Changes to the resolution of properties with both a getter and isser returning different types

An isser is a method to retrieve boolean properties. Instead of the method name starting with get (as is common for accessor methods), it starts with is. See the JavaBean Properties tutorial for more information.

For properties that have a getter and an isser returning different types (for example, JiraAuthenticationContext#getLoggedInUser and JiraAuthenticationContext#isLoggedInUser) when accessing the property, instead of calling one of the methods (for example, jiraAuthenticationContext.loggedInUser), the getter is called in Groovy 3 but the isser is called in Groovy 4 - see GROOVY-10821. You don't need to worry about updating scripts with the loggedInUser property on JiraAuthenticationContext as we have included a patch (see more below).

ScriptRunner for Jira patch

For backward compatibility reasons, ScriptRunner ships with a patch to keep the old Groovy 3 behaviour for two conflicting Jira API properties commonly used in customer scripts:

  • The loggedInUser property on JiraAuthenticationContext 
  • The created property on Issue

We've included this patch as these properties will likely be heavily used in users' scripts. This means you do not need to change any code using these properties.

Solution for other properties

From Groovy 4 if you have custom classes, or are using external classes that implement conflicting isser and getter methods, and you are using the property syntax to get the getter value, you must re-write the logic to use the getter method directly.

For example, this class demonstrates conflicting isser and getter methods:

groovy
class GetterIsser {   String getSomething() { 'yes' }   boolean isSomething() { false } }   def myClass = new GetterIsser()   myClass.something // used to return 'yes', as of Groovy 4 will return false

From Groovy 4, this should be written as:

groovy
class GetterIsser {   String getSomething() { 'yes' }   boolean isSomething() { false } }   def myClass = new GetterIsser()   myClass.getSomething() // will return 'yes'
2) Legacy package removal

Groovy 3 provided duplicate versions of numerous classes (in old and new packages) to allow Groovy users to migrate towards the new JPMS compliant package names - see the section about it in Groovy 3 Release Notes for more details. Groovy 4 no longer provides the duplicate legacy classes.

For backwards compatibility reasons ScriptRunner still ships with deprecated version of groovy.util.XmlSlurper and groovy.xml.XmlParser. We recommend you don't use these legacy classes going forward and use their equivalents that can be found in groovy.xml package.

3) Changes related to how Groovy code accesses private fields from within closures

Groovy developers are currently attempting to improve how its code accesses private fields in certain scenarios, where such access is expected but problematic. For example, within closure definitions where subclasses or inner classes are involved (GROOVY-5438). You may notice breakages in Groovy 4 code in such scenarios until they fix this issue.

4) Change to intersect() default Groovy method

intersect() default Groovy method used to draw elements from the second argument passed to it, but now it draws elements from the first argument passed to it - see GROOVY-10275.

5) Error message for users using @Grab to import certain libraries

There has been a breaking change for users using @Grab to import certain libraries. Check out the Groovy 4 Breaking Change for Grab Annotations page for more information on this breaking change and solutions on how to fix it. 

Deprecated SrSpecification class removed

Authors of Script Plugins may be used to writing tests which extend the deprecated com.onresolve.scriptrunner.canned.common.admin.SrSpecification class. This class has been removed. Authors of tests for their scripts should extend the spock.lang.Specification class directly. The Test Runner Built-in Script should still pick up tests as normal.

HAPI update

We've made a breaking change related to retrieving the customer request type. Find out more details in the HAPI Changelog

New Features

  • SRPLAT-2179 - Support for JDK 17

Bugs Fixed

  • SRPLAT-2267 - Marking closing bracket in editor not working

  • SRPLAT-2262 - The last couple of lines are not visible when the code editor is in the maximised mode

  • SRJIRA-6582 - cannot get customer request type name

  • SRJIRA-6581 - attribute name completions missing from `asset.getAttributeValue`

  • SRJIRA-6548 - HAPI workflow validation errors are being suppressed

  • SRJIRA-6442 - Database/LDAP Picker shows an error when the projects are filtered in the Context and the user has no Browse Projects permission for that project

On this page