custom event and workflows

Hi,

 

I have created a custom event as "Move Issue". Also, I have created a new transition "working on ticket" from "waiting for support" to "waiting for customer" statuses.

 

After that, for "working on ticket" transition, i have added a post function for updating the field value - summary, which is working fine when i am moving to "working on ticket", the ticket summary get updated.

 

Kindly let me know how can i Update the post function to fire the custom event which i created "Move Issue".

 

I am unable to correlate the custom event with post functions.

 

Please explain.

 

Thanks,

Ankita

4 answers

1 vote

Look at the existing post-functions on the transition - JIRA will add five of them for you automatically (and you can't remove them)

One of the standard ones is "fire event", which will probably say "generic event".  Edit it, changing it to your "move issue" event.

Hi Nic, Thanks for the response. I changed the generic event to "Issue Moved" system event. But when I move to "working on ticket" transition, nothing happens for Issue moved event. Basically , I want if i am firing this event then Move issue screen should open so that the ticket can be moved to another project. Is it possible? Please explain. Thanks, Ankita

I think you have misunderstood what events are for. An event is fired as a result of a change to an issue (and a couple of other places, but it's still a change of something). They are fired at the END of the process, and are there for "listeners" to react to. A listener is a background process which has no user interface. The standard listener in Jira is for email (via the notification schemes) So, effectively, events generate emails to people. An event is NOT for triggering further user activity, it can't do it. If you want to move an issue, you can't do it in a transition, you need to do it in a move process. You'll need to write a listener that can respond to your custom event and do the move. Be warned, the action of moving an issue is wrought with danger - unless the schemes in the source and target projects are identical, you can easily break the issue. That's why "issue move" is complex for the users in the UI as well.

1 vote
Joe Pitt Community Champion Feb 24, 2015

When you are editing the post functions replace the current event with your new event.

Hi Nic, Thanks for the response. I changed the generic event to "Issue Moved" system event. But when I move to "working on ticket" transition, nothing happens for Issue moved event. Basically , I want if i am firing this event then Move issue screen should open so that the ticket can be moved to another project. Is it possible? Please explain. Thanks, Ankita

hi, how to write a listener to respond to a custom event and do the operation. Thanks, Ankita

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

102 views 0 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you