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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 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

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?

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Desk

Calling all Insight users, we need your help!

Hello Insight users,  As part of our (Mindville's) acquisition by Atlassian, our training team is looking to build some new Insight training materials. It would really helpful if you can ...

162 views 1 1
View question

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