I've written an Insight Post Function that, when an exception is encountered, updates a custom field with the error information and returns false. The custom field is so that the user is aware of the problem. I had it return false on the (bad) assumption that this would block the transition from continuing.
I just modified the code to throw a new exception instead of returning false, but that doesn't block the transition either.
Is there any way for a post function to prevent a transition from reaching its target status? For example, is there a jira field associated with the transition that I can set to false?