JIRA Transition History Data Report

Hi All,

I am trying to fetch data report for each Issue transition present under 1 project. Currently I cannot find any such Report present in JIRA, I am trying query database for same but still i am not able to get project specific details.

I am getting reports/data for whole JIRA instance with all issues. But i would like to have report/queried upon single project and for all issues present under that project.

Please find my query below:-

SELECT changeitem.oldstring, changeitem.newstring, changegroup.author, changegroup.issueid,
changegroup.created FROM changeitem 
JOIN changegroup 
ON changeitem.groupid=changegroup.id 
WHERE changeitem.field='status'



1 answer

1 accepted

This widget could not be displayed.

The database is very much NOT built for reporting and you would be far better off using the API.  A REST call to JIRA with "project = X" would get a list of issues and you could easily poke that for the history.  Or write an add-on that can use the API to pull it.

Otherwise, in the database, you're going to need to read the project table to get the project key, then use that to read jiraissue for each issue, then for each of those, read changegroup for changes to those issues and finally changeitem.

Or, inversely, read everything from changeitem and changegroup as you have already, and join that to jiraissue to work out the issues and then project to work out the project.

Either way, you've got large, inefficient SQL queries that are a really bad way to do this.

Thank you @Nic Brough [Adaptavist] :- I was using Confluence though by SQL plugin, I already had Data Source added so thought of using this. once query has been embeded under page using plugin would have served my purpose.

I agree using REST would be good, but not in my team all are technical and would not be happy with REST though.


Thanks for answer much appreciated !!




I am less knowledgeable on REST would be helpful.



Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published yesterday in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

148 views 0 10
Read article

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