Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Script Runner Variable in a Class in Jira cloud

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 4, 2021

Dear all,

I have define a set of 20 global Script runner variable that I would like to use in my script console.

I notice that as long as you remain at a root level of script console line, variable are properly fetch and read.

But as long as you declare a public class and use the same variable in that class, you get a Missing property exception.

Any idea how those global script variables can be used in public class ?

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Anton Kulikov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 6, 2020

if you use

log.error "project = '${mailbox.project}' AND creator = shadmin AND created >= -30m AND summary ~ '${subjectKey}'"

 before search result. and copy in jql search in ui is it correct search?

TAGS
AUG Leaders

Atlassian Community Events