Advanced SQL Query based on status?

Robert Anthony September 15, 2015

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

0 votes
Pablo Beltran
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 16, 2015

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

https://marketplace.atlassian.com/plugins/com.kintosot.jira.jdbc4jql

 

 

 

 

0 votes
Christian Czaia _Decadis AG_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2015

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: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions

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

https://eazybi.com

Cheers,

Christian

0 votes
GabrielleJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2015

Take a look at the JIRA Advance Searching Function "WAS" (https://confluence.atlassian.com/jira/advanced-searching-179442050.html#AdvancedSearching-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). 

Suggest an answer

Log in or Sign up to answer