Hi All,
I have set up quite a few logic in terms of post functions in my workflow such that when an issue is created in my project a number of activities take place upon ticket creation.
However, if someone moves a ticket to my project from another project the same post fucntions will not trigger on the new ticket. I am wondering if there is a way to trigger an Issue Create event when a ticket is moved from another projet to my project.
Thank you
It's not a "create" though. The issue already exists, it's got content and a history.
What you need to do is trap the "move" event and replicate the post-functions in a listener.
With a listener - they're for picking up and responding to events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a similar problem. I have scripts on postfunctions that are triggered on a create event, and I need them to trigger on a move issue event. Postfunctions are Scriptrunner scripts on the server. Is there a way to reuse them? Because I have a problem with Available binding variables. Binding variable issue is available in workflow postfunction, and event isn't. And it is vice versa for script listeners.
Does anyone have any suggestion how to overcome this?
Cheers,
Marina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll need to copy your post-function scripts over into listener scripts that catch the "move issue" events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick response!
So, you are saying, I'll need to manage duplicate code? I would like to reuse code. Is there a way to make the script aware of the context? Is there a way to do that without writing a plugin?
Cheers!
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.