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,369,235
Community Members
 
Community Events
168
Community Groups

How to use Variable in a class

Dear all,

I have the following class snipet :

API_Helper(boolean UseRolexAccount, String TargetAD){
if (UseRolexAccount){

switch(TargetAD) {
case "RLX-DIGITAL": //=>Token from Rolex DIGITAL AD
Token= getToken(RLX_AZAD_TENANT_ID,RLX_CLIENT_ID,RLX_CLIENT_SECRET_ID)
break

case "RLX-IT": //=>Token from Rolex IT AD
Token= getToken(RLXIT_AZAD_TENANT_ID,RLXIT_CLIENT_ID,RLXIT_CLIENT_SECRET_ID)
break

}

 

The vaiable in Bold are part of Script Runner variables definition.

What is happening is that I get an exception below when using those variable in my class construtor

MissingPropertyException: No such property: RLX_AZAD_TENANT_ID for class: API_Helper

 

Any idea how to use those variable in my class?

1 answer

0 votes

Hi Serge

I believe that you have created a support ticket with us and we will address this issue accordingly. 

Thank you and Have a Nice Day.

Kind Regards

Kate

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events