Missed Team ’24? Catch up on announcements here.

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

Need help with a condition

Anita Hütter November 8, 2023

I hope some of you can help me with a groovy condition

A transition should be visible if the current user is at least:

-in a Group

-in a Organisation1

-in a Organisation2

we startet with:

---------------------

The current user should match at least one of the following criteria:

  • The user is a member of one of these groups: SG-internal
  • The following script returns true for the user:

def item=(getUsersInOrganization(getOrganization("org1")))
item.add(getUsersInOrganization(getOrganization("org2")))
for(int i=0;i<item.size;i++){
if(item[i]=currentuser){
return true
}else{
return false
}
}

------------------------

We tied a lot- if someone can help us it would be great!

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events