I want to find out the projects which are inactive in my instance from last 6 months.
Hi Neeranjan,
There have been several similar post which you can refer to and here's one of them: Need a query to find out active and inactive Jira project over the last 6 months.
You can use the following queries:
1. SELECT count(id) FROM project WHERE ID NOT IN (SELECT DISTINCT(project) FROM jiraissue WHERE updated > DATE_SUB(NOW(), INTERVAL 6 MONTH) and created > DATE_SUB(NOW(), INTERVAL 6 MONTH));
2. SELECT count(id) FROM project WHERE ID NOT IN (SELECT DISTINCT(project) FROM jiraissue WHERE updated > DATE_SUB(NOW(), INTERVAL 6 MONTH) or created > DATE_SUB(NOW(), INTERVAL 6 MONTH));
Hope this helps!
SELECT count(id) FROM project WHERE ID NOT IN (SELECT DISTINCT(project) FROM jiraissue WHERE updated > DATE_SUB(NOW(), INTERVAL 6 MONTH) or created > DATE_SUB(NOW(), INTERVAL 6 MONTH))))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @niranjan,
Upgrade to Jira v7.11.1 and above. They have added a feature that lets you see more project information in the admin section.
Jira Software 7.11.x release notes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does this feature exist on JIRA Cloud as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not that i have been able to locate. You would think they would make this available as we have limited querying options where as the server version can always query the DB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On Jira Cloud you can see activity by doing the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! @Greg Williams ! Is there any way for including that same field in the project list obtained when "View All Projects" option is selected? Or this is just visible for admins?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This method is admin use only.
I tried to see if there was a way to use JQL but that returns tickets, not projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try using avance filters:
from data base:
2. SELECT DISTINCT p.pkey,p.LEAD,MAX(i.UPDATED) as "Last Updated"3. FROM jiraissue i4. INNER JOIN project p5. ON p.ID = i.PROJECT6. GROUP BY p.pkey,p.LEADORDER BY MAX(i.UPDATED) ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Diego Cañete
For everybody else: I couldn't make Diegos's query work on my postgres version, so I did the following modifications and it works like a charm:
SELECT DISTINCT p.pkey,p.LEAD,MAX(i.UPDATED) as "Last Updated" FROM jiraissue i INNER JOIN project p ON p.ID = i.PROJECT GROUP BY p.pkey,p.LEAD ORDER BY MAX(i.UPDATED) ASC;
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does Atlassian provide the same information via API as well? instead of going to the DB?
Thanks,
Tushar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We're currently on Jira server Version 7.1.2, but unfortunately, there's no 'Manage Projects' option accessible for Jira Admin. Please advise if there's a solution available. Additionally, I need to check the latest issue update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sandip,
Server/DC does not really have a "mange projects" like Cloud does. The screenshot you show is probably the closest you will get on older versions of Server/DC.
Your version is 4-8 years out of date, not supported in any way, and may have some security issues that you really need to fix.
I strongly recommend that you upgrade it to Jira Data Center 9.12 (the latest long-term-support version) as soon as you can. Not having "manage projects" is a trivial problem compared with the age of your system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, this is great... but... I have a situation where I am trying to develop a Confluence page for our project leads to be able to go to, see when projects were last active, and respond to some questions.
How do I get this data, into a confluence page?
It's absolutely asinine that I can't get this information into Confluence. Just ANOTHER Atlassian FAIL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you think you need to dig up obsolete data?
(or "necropost" as well)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Because.... the question remains. And I don't have an answer?
Why do you have to be so condescending and difficult?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the query above could be incomplete in case you have existing project without issue:
please find the corriged one :
SELECT p.pkey, p.LEAD, MAX(i.UPDATED) as "Last Updated"
FROM jiraissue i
FULL JOIN project p ON p.ID = i.PROJECT
GROUP BY p.pkey , p.LEAD ORDER BY MAX(i.UPDATED) DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you all it helped alot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.