Maybe I'm not using this correctly but In my experience the example script does not work when creating an item. Because the item has not yet been created and the link has not been created the validator simply throws an exception every time I click "Create".
Placing the validator at the next transition always works however.
Highly unlikely for that script to cause a CPU spike.
Try something more simple, like just throwing an exception every time
import com.atlassian.jira.issue.IssueFieldConstants import com.opensymphony.workflow.InvalidInputException throw new InvalidInputException("You must link a blocker issue at this transition")
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs