You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
If the user is already set as assignee somewhere in the project, he should not be able to transition another issue. therefore Iwould like to write a script validator.
I already tried something like
issue.assignee.includes(user.accountId).
But I was not succesfull.Does one of you have an idea and can help me
I am not sure I understand what you are trying to do here. The way I read it is:
If a user is assigned issue X then they are not allowed to do a transition on issue Y.
Is that right?
It's quite an unusual requirement, I would expect something more like "only the assignee of Y can transition Y"
I can't tell why your code doesn't work without being clear on what it is trying to achieve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.