Advanced SQL Query based on status?

Hi Guys,

Our workflows automatically unassigned when the tickets have been reviewed and closed by supervisors. It would be nice if I could still create a filter to search for which users got the most tickets into the "Complete" status however, before the ticket was given to a supervisor for review and close. Is there an advanced query I can run for this? Thank you! 

3 answers

This widget could not be displayed.

Take a look at the JIRA Advance Searching Function "WAS" ( The requirements may not be clear to me, but try:

Assignee WAS robertanthony and STATUS = CLOSED

Play around with it, maybe you can generate your own. I just want to give you an idea it's possible to search based on a status "before".

You have a very weird workflow (unassigning tickets after it was closed). 

This widget could not be displayed.

Hi, I'm afraid this is not easy to achieve. JQL can query against historical data but the data displayed is your "current" data. 

The query from Gavriella will show you all the issues that had been assigned to  "robertanthony" once during the issue lifecycle but I guess that's not what you want.

You could use sth. like: 

status changed TO Complete BY robertanthony

and you'll receive a list of all the issue you have completed. The only thing that pops up in my head is, that you might be able to script your on JQL function with ScriptRunner:

Or you might have a look at reporting tools like EazyBI...



This widget could not be displayed.

You can get it by using the SQL for JIRA add-on:





Suggest an answer

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

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

109 views 1 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