We are hosting > 100 projects in our JIRA instance. I'd like to know if all of these projects are active.
Current idea is to run a query that returns the most recent update date or create date for any issue, one for each project. So it doesn't matter which issue within the project it is. I just want to know when the last activity was.
Hope this makes sense. If you have a better way to gather this information would love to hear it.
If it makes a difference, we're running postgresql.
Thanks.
Hello team,
Please try the query from this previous answer:
https://answers.atlassian.com/questions/176459
I've adapted it to postgres:
SELECT DISTINCT i.PROJECT, MIN(i.UPDATED) as "Last Updated", p.pname FROM jiraissue i INNER JOIN project p ON p.ID = i.PROJECT GROUP BY i.PROJECT, p.pname ORDER BY MIN(i.UPDATED) ASC, i.PROJECT, p.pname
That is Brilliant!!! Thank you so much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I spoke too soon. :( the results indicated for project ABC that the last update was on 2012-10-16. But when I search on issues for that project, I see updates as recent as 8 days ago. I'll play around with it. I see where you are going here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, changed MIN to MAX and it's a thing of beauty! SELECT DISTINCT i.PROJECT, MAX(i.UPDATED) as "Last Updated", p.pname FROM jiraissue i INNER JOIN project p ON p.ID = i.PROJECT GROUP BY i.PROJECT, p.pname ORDER BY MAX(i.UPDATED) ASC, i.PROJECT, p.pname;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question ... know what the query would be for confluence and stash??????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
do you know how i can get it to list the project keys instead of the project names? or to list both the project keys and names?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Query is working nice! But has a little issue, for nulls values on the "Last issue update" are not listed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DI2E SysAdmin was right max and min needs to be switched for this query to work correctly. Thanks all!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.