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

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

siva
Contributor
October 25, 2020 edited

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
Contributor
October 28, 2020

Sorted it out, 

 

Thanks for the response.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events