It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set up Script Variables in Script Runner

Jean Rodriguez Aug 01, 2017

I read the following documentation on Script Variables in Script Runner (http://scriptrunner-docs.connect.adaptavist.com/jiracloud/script-variables.html) and how to use it in your script, but it does not describe how to set up a variable.

For example, in the documentation it say's that the variable

MY_FIRST_SHARED_VAR

has the value

testValue

but how do you set that variable and where? Do you set it up in JIRA or the server that is running JIRA?

1 answer

0 votes
Tom Lister Community Leader Mar 10, 2019

Hi @Jean Rodriguez 

Go into the Add-ons part of JIRA Administration and in the left sidebar there should be a sub-heading SCRIPTRUNNER with one of the subsections being Script Variables. For a Cloud instance, the exact URL should be something like this:

https://[yourinstance].atlassian.net/plugins/servlet/ac/com.onresolve.jira.groovy.groovyrunner/script-variables?s=com.onresolve.jira.groovy.groovyrunner__script-variables

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

149 views 2 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you