Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 unused Jira projects

After years of using JIRA, we have a lot of projects that are no longer actively being used.   I can go through and search project by project to find the most recnet ticket created in each... I was just hoping for a more elegant solution.   Maybe something which showed me the most recent issue in each project.  Has anyone done something like this?  

4 answers

1 accepted

1 vote
Answer accepted

I do this by SQL Queries @Rodney

SELECT DISTINCT p.pkey,p.LEAD,MAX(i.UPDATED) as "Last Updated"
FROM jiraissue i
INNER JOIN project p
GROUP BY p.pkey,p.LEAD

Hope this helps





1 vote

I resorted to writing a report ages ago.  It listed the projects with the most recently updated issue, date of oldest issue, ID (as that always increases when you create new projects, so you know the newest project is the highest number etc), and a couple of other bits related to it.

I keep meaning to re-develop it (it was a hack at the time, and for version 3.something), but things like sleep and paid work get in the way.

Sadly, I suspect your approach is already the best you can get without any coding, although if you've got script-runner or reporting tools, you should be able to do something.


Yeah, that is what I was thinking also.  Maybe in some of my downtime I can put something together.  



We used to have the same problem with our support packs projects, so we used Profields to give our projects a scripted field called Last Activity that records the last time something happenedd in the project. Maybe it could solve your problems and help you organice your projects better.



Hi, could you share the script please?



In the last jira updates, as an admin you can see when was the last issue update in a project ( only admin view).
I copied the script from here, do not know if still works :).

import com.atlassian.jira.issue.Issue
import com.atlassian.jira.jql.builder.JqlQueryBuilder
import com.atlassian.jira.web.bean.PagerFilter
import com.atlassian.jira.component.ComponentAccessordef authContext = ComponentAccessor.jiraAuthenticationContext
def searchProvider = ComponentAccessor.getOSGiComponentInstanceOfType(SearchProvider.class)def user = authContext.getUser()
def lastUpdatedDate = new Date(Long.MIN_VALUE)try
def builder = JqlQueryBuilder.newBuilder()
builder.where().project(project.getId()) def query = builder.buildQuery()
def searchRequest = new SearchRequest(query)
def results =, user, PagerFilter.getUnlimitedFilter()) def i = 0
for (Issue issue : results.getIssues())
def lastUpdated = issue.getUpdated()
if (i == 0 || lastUpdated > lastUpdatedDate)
lastUpdatedDate = lastUpdated
catch (def ex)
logger.error("SCRIPT PROFIELDS FIELD: " + ex.getMessage())
return lastUpdatedDate

Thank you very much - I know that project view, but it is not able to sort or filter there... I need to review that code as it displays a weird date time result, but a good hint already!

Like laralg likes this


Suggest an answer

Log in or Sign up to answer

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