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 votes

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,849 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot