Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to define a global variable in Jira using Script Runner

Faith Johnson January 13, 2019

I attempted to research this option but am unable to find a solution to maintain a global variable to set/get across multiple issue types as a custom field. 

Scriptrunner is installed on jira server. TIA

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Marina Veselić July 16, 2019

Samo here. Is there a way to create a constants file/class and invoke those constants across the scripts? Both ones saved on the server and ones written in inline scripts in Jira?

Cheers,

Marina

0 votes
Pujan Ziaie January 31, 2019

I'm looking for a same solution to have more transparence over general variables we use in groovy scripts (e.g. in post-function or Listener or Behavior). Any luck with a solution?

TAGS
AUG Leaders

Atlassian Community Events