I have some conditions too complex to try to apply via JQL.
Is there some attribute I could set using the "Additional issue actions" code to cancel/prevent the action from occurring as expected?
Right now, I'm setting the action as "None" and I've completely coded my own action handling, but I'd prefer a simpler solution.
No sooner asked then answered ....
I had actually been thinking for a few days about that, then realized that I could probably just throw an exception.
And yup, sure enough, that works
throw new Exception("Skipping this action")
Could just include something like
return "Cancelling action"
Edit: Just saw that you answered it yourself- leaving my answer for anyone who will stumble across this thread in the future
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think this works:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good call- I forgot that it only cancels out of the rest of the script, not the action (I pretty much only use escalation services for scripts). Your way is definitely better
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.