It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Find inactive projects in JIRA

Sivaz Jan 24, 2013

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

6 answers

1 accepted

4 votes
Answer accepted
Matthew Cobby Jan 24, 2013
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.

Sivaz Jan 29, 2013

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');

Jason Smith Feb 04, 2015

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');

David Wu May 24, 2016

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'))

12 votes
Renjith Pillai 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.

Katie Kennedy Feb 21, 2019

Is there a way ot do this using postgres?

 

Thanks

1 vote
Verena Ruff Jun 02, 2016
#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)) 
0 votes
Rahul Aich [Nagra] Jan 24, 2013

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

0 votes
Brad Apps Apr 09, 2015

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

Katie Kennedy Feb 21, 2019

Is there a way to do this using postgres?

0 votes
Jose Zuniga Sep 19, 2018

I did it with the last date updated per project with SubFactory

select * from (

select project, updated,

max(updated) over (partition by project) as max_update
from jiraissue
) temp
where updated = max_update

Joshua McManus Oct 25, 2018

Can you provide some more information about this Jose? I don't know where to make the search and can't find information about SubFactory

Jose Zuniga Oct 25, 2018

Hello Joshua, did you tried to run this query on your DB?

SubFactory is a term for a temporary table created (in this case temp) and selecting those values from the temporary table

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

834 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you