The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Sql Query to find when each issue status was last used/how many issues its listed against

Hemanth Nagarajan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 24, 2022

I am looking for some query to find out when each issue status was last used/how many issues its listed against. 

 

I am new to querying from DB, any pre used queries would be helpful or some useful links to create them please.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Radek Dostál
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 Champions.
February 24, 2022

DB is not meant for reporting purposes, and you will break your teeth trying to get anything meaningful out of it if you're not familiar in depth which tables Jira uses and how they relate to one another.

You could get all of these from plain and simple JQL search https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-fields#Advancedsearchingfieldsreference-StatusStatus and this can be combined with dates, so one you can get issue count e.g. 'status = open'; and then you can try something like 'status changed to open after startOfYear()' or a specific date, etc.

SQL is not necessary and not a good tool to use for data reports - Jira was not created with sql reporting in mind.