Find inactive projects in JIRA

Hi,

Is there a way to determine how many projects in my instance have not been used in the past 6 months? I.e. no issues created or modified not even comments added. I tried to think of using JQL but couldnt figure a way out.

Admin changes to projects can be ignored.

TIA

5 answers

1 accepted

select * from project where key not in (select distinct(pkey) from jiraissue where updated > "insert your date here")

If you have confluence as well, you can run the SQL report in there using bob Swift's SQL plugin.

Thank you very much. The following is the query I have used.

select pname from project where ID not in (select distinct(project) from jiraissue where updated > '2012-07-01 00:00:00');

Neither of those queries worked for me. The first one didn't because pkey is deprecated, and the second one uses the "wrong" date format. This is what worked for me: select pname from project where ID not in (select distinct(project) from jiraissue where updated > '01-JAN-12');

assume today is 20 May 2016 following sql list all projects with issue created/updated in past month:

select * from project where id in (select distinct(project)
from jiraissue where updated > to_date('20/04/2016','dd/mm/yyyy'))

6 votes
Renjith Pillai Community Champion Jan 29, 2013

You can do a reverse stuff using JQL, "updatedDate >= -180d ORDER BY resolved DESC", save it as filter and create a Issue Statistics gadget with Project as the key. It will list me all the projects which are active in last 6 months.

Everything remaining is unused.

Jira does not support this feature at the moment.

This is a feature request submitted in Nov 2012. here's the link to it. Feel free to go in and vote for this feature request.

https://jira.atlassian.com/browse/JRA-30664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

Rahul

btw. fixed query from @Matthew Cobby :

select pkey from project where ID not in (select distinct(PROJECT) from jiraissue where  updated > date_sub(now(), interval 31 day));

showing all project keys for all project that didn't have updated JIRA since 31 days

#projects without any updated issues within the last 6 month
select pname, lead,pkey from project where id NOT in (select distinct(project) from jiraissue where updated > date_sub(now(),interval 6 month)) 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,063 views 13 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot