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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

159 views 1 17
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