Forums

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

Condition to execute only if current users is in the list

Sanjay Prasad July 9, 2020

Hi,

I am trying to write a simple condition for current user, so that only these users can execute the transition. I got one person working using user.displayName == 'Tesla Elon'. I am trying to achieve it for multiple users user.displayName ==  ('Tesla Elon', 'Google A') 

Using script condition from scriptrunner. Thanks in advance. 

1 answer

1 accepted

1 vote
Answer accepted
Sanjay Prasad July 9, 2020

Figured it 

user.displayName == 'A A' || user.displayName == 'E M' 

We have to call independently. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events