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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,761
Community Members
 
Community Events
176
Community Groups

Create a validator script in Jira Cloud

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

 

1 answer

0 votes

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.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events