Hi there
Is it possible to prevent the postfunctions from beeing triggered, when updating an issue technically?
The following situation:
If someone changes an issue on the GUI, a postfunction shall be triggered (as usual). I do catch those with a listener in the plugin. But i'd like to prevent Jira from triggering a postfunction when i change an issue within the plugin. Is that possible? A found out, that it is possible for attachments and comments, but also for all the other (and custom-) fields?
Many thanks in advance!
br, muellae
Looking at the code I recall seeing where the transition occurs and where the post functions get called. You could customize that to avoid calling the post function, or customize the post function to do nothing, or even more easily add a duplicate transition that doesn't have the post function.
~Matt
How would you handle the "how do I know whether to run the post function or not" question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought, there must be some kind of a parameter, which indicates that.
the problem is: when I have this Listener called, I'd d like to update some fields on the issue. But this triggers the listener again and makes it kind of recursive. And I'd just like to prevent to trigger this event again.
Or, not sure if I missunterstood the question now?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.