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

siva 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

1 vote
Answer accepted
Tom Lister
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 October 28, 2020

Sorted it out, 

 

Thanks for the response.

Suggest an answer

Log in or Sign up to answer