Script Variables
Migrating from ScriptRunner for Jira Server/DC to Cloud? Check out our ScriptRunner Migration to Cloud section. |
Before you start
Take a look at an example of Script Variables. |
What are Script Variables?
You can use Script Variables to specify variables that can be inserted into your scripts ( Script Console, Script Listeners, Workflow Perform Actions, Scheduled Jobs, Escalation Service).
How to use Script Variables
The variables are encrypted and stored within your ScriptRunner for Jira Cloud instance. You can use them to share common variables between your scripts, or to store sensitive data such as passwords that require encryption rather than hard-coding them directly in scripts.
Naming convention
Variable names must follow these rules:
- start with a letter
- only capital letters are allowed
- only digits and underscore character (_) are allowed
Limitations
Length limits for variables include:
- name is 32 characters
- value is 3000 characters
Note that clicking the show password icon of script variables that are >50 characters opens a popup screen for easy viewing.