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