I'm trying to add two types of validators (in different transitions):
- If the current user is the assignee, the transition is allowed.
- If the current user is NOT the assignee, the transition is allowed.
Please, how can I add these validators? I did not find in the options for validators. Do I really need to use a third party app, from marketplace because Jira does not allow this out of the box?
Validators would be a bad way to do this, ugly for the end user, so Jira hasn't got any suitable ones built in. A validator acts after a user has triggered a transition, potentially having entered data that they want to change. If the validation fails, the user will be thrown back to the beginning, which is annoying and means they'll lose the data they put in.
Look instead to conditions. These will stop people being even able to start the transition, so they'll never get frustrated by "you can't do this, and I'm throwing away your data" messages.
There is a built-in condition for "assignee = current user"
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events