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

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). 

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...



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 Apr 17, 2018 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...

800 views 2 19
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