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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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');
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
Great option, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
#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))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the cloud version, you can view when the last modified issue in the 'view projects' screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Had originally posted I couldnt find the column but I was on the general Project table not the table in Settings.
For anyone who made the same mistake as me, go to the Gear/Settings Icon, select Projects and under Manage Projects you will see the table that includes the column in the screenshot above.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys, I cant make this work, and especially not the select command. Can someone please show a working search just copied and pasted?
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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.
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.