Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,312
Community Members
 
Community Events
165
Community Groups

How to define a global variable in Jira using Script Runner

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

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

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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

352 views 0 10
Join discussion

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