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'
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 !!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
@Alice Camilla is a university student, currently writing her MA thesis in Archaeology. She's also a freelance blogger and content creator, writing about geeky stuff from productivity apps to JR...
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!
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