Hello,
I am a non-programmer currently writing scripts for my company's JIRA processes using ScriptRunner.
I have a number of Validators on a transition from one issue state to another. Originally, I thought they executed in order, so I put the most general validator on top, and other validators that check for specific issue types in if statements below them. I then realized that error codes for these simple script validators below the general ones were showing up instead of the topmost validator, which should be catching those issues.
I added an if statement that ORs all the issue types involved, and this solved the problem, but I'm afraid I don't understand how or why this works.
How do ScriptRunner Validators execute? Does it go by issue, or does the shortest loop execute first?
Thanks