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

How to use Variable in a class

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 Leaders.
March 3, 2021

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

Suggest an answer

Log in or Sign up to answer
0 votes
Kate Kabir
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 Leaders.
March 4, 2021

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

TAGS
AUG Leaders

Atlassian Community Events