It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to trigger an Issue create event when moving n issue to a new poject Edited

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

1 answer

0 votes

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.

Thanks Nic for your quick response. How do I trap the "move"?

With a listener - they're for picking up and responding to events.

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?



You'll need to copy your post-function scripts over into listener scripts that catch the "move issue" events.

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?


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

275 views 1 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you