Scriptrunner listeners don't recognize "Done" event Edited


My project uses the JIRA Software-generated Software Simplified Workflow Scheme:

To Do -> In Progress -> In Review -> Done

I am trying "Clones an issue and links" and "Send a custom email" listener scripts and have set filter on events "Issue Resolved", "Issue Closed".

However, when I move an issue to the "Done" state, nothing happens and on the script listener page I see that the scripts "Has not run yet".

Apparently the listeners don't recognize the "Done" state as "Issue Resolved" or "Issue Closed".

How can I make them do so?

1 answer

1 accepted

1 vote

You're confusing "events" with "status".  The status of an issue is where it is in a workflow.  An "event" is something fired when something changes.

There are events like "issue resolved" and "closed" that happen when an issue moves into that status, but these are generated by the *workflow*, not the status. 

Go to the workflow for the issue and look at the *transitions*.  Specifically, look at the transitions going into the status that is in your "done" column (which is also probably "done").  You need to look at the transitions post-functions, one of which is "fire event: X".  The X is the name of the event you need to be looking at in the listener filter.

Thank you Nic,

I did as you said, and everything works now!

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
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

629 views 3 11
Read article

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