Sometimes, you want to know what is not being used. It's great to know what's getting most attention, but what about stagnant pages, or even entire spaces that are no longer active? While viewing space activity and the Global Statistics plugin can provide hints, they still doesn't always provide enough detail. The simple way is to go directly to the database. We recommend DbVisualizer, and have basic instructions for connecting it to HSQLDB.
SELECT spaces.spacename, MAX(content.lastmoddate) FROM content, spaces WHERE content.spaceid = spaces.spaceid GROUP BY spaces.spacename; It returns a list of spacenames, and the last date and time at which any content was added or changed.
SELECT spaces.spacename FROM content, spaces WHERE content.spaceid = spaces.spaceid GROUP BY spaces.spacename HAVING MAX(content.lastmoddate) < '2006-10-10'; The result is a simple list of space names.
h3. Space activity
{sql:dataSource=confluenceDS|output=wiki}
SELECT spaces.spacename AS Space, MAX(content.lastmoddate) AS LastModified
FROM content, spaces
WHERE content.spaceid = spaces.spaceid
GROUP BY Space;
{sql}
Unable to render embedded object: File (SQLscreenshot.png) not found. The Chart plugin can be used in combination with the SQL plugin to give more visually attractive results. |

Comments (4)
Oct 11, 2007
Sarah Maddox says:
Hi James, I happened to come across this page. It looks very useful indeed :) A ...Hi James, I happened to come across this page. It looks very useful indeed
A couple of comments:
Oct 11, 2007
James Fleming [Atlassian] says:
Thanks! If it'll be more useful elsewhere, I'll be happy to move it. I'm still ...Thanks!
If it'll be more useful elsewhere, I'll be happy to move it.
I'm still assimilating the various nuances of the links; will update these to be internal. As you've probably noticed already, I'm still tweaking the page after publishing it
Oct 11, 2007
Sarah Maddox says:
How about this: Change the title of your page to something like 'Finding Unused...How about this:
Oct 19, 2007
James Mortimer says:
would you consider renaming this (and other) pages to exclude the ? so that they...Add Comment