Several limitations are applied to scripts when they are run. The limits should be more than sufficient for most scripts and are designed to catch erroneous scripts. These are detailed below here.
Scripts can run for no longer than 120 seconds. After running for 120 seconds the logs will be collected and the code terminated. Any logs from the first 120 seconds of execution will be logged in the Script Logs page.
If the 120 second script run time is not sufficient to meet your needs, you can address this issue by raising a support request.
Whilst you can import packages into your scripts in the Script Console, Script Events and Post-Functions, you can only import from the standard Java 11 classes and the following libraries:
Scripts in ScriptRunner Cloud Storage
Currently, the maximum amount of code that can be stored within Jira Cloud across all Script Listeners is 32KB. So, if one Script Listener contains 30KB of code then all your other Script Listeners must only contain 2KB of code between them.
Please note that our scripts are stored externally from your Jira instance in ScriptRunner Cloud Storage. Our scripts are not part of any Jira exports, meaning that they cannot be automatically migrated between Jira Cloud instances. Currently it is not possible to migrate your scripts back into Jira Cloud’s storage. If you require a larger amount of storage you can create a support request.