The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Need to add a condition on a transition, ( Role based )

siva
Contributor
October 25, 2020

Need to add a condition on a transition, ( Role based )

 

A. There is a role " programmers " in the project.

 

i need to add a condition that users in role " programmers " should not be allowed the transition.

i have tried the script condition "isUserMemberOfRole('Programmers')" ( which allows only the users in Programmers role to make the transition)

But what i need is opposite , ( users in the role Programmers should not be allowd the transition )

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Tom Lister
Community Champion
October 28, 2020

Hi @Siva

Which tool are you using to implement the condition?

If it's groovy/scriptrunner you could use the not operator "!"

e.g.

!isUserMemberOfRole('Programmers')

siva
Contributor
October 28, 2020

Sorted it out, 

 

Thanks for the response.