Reporting on space size in Confluence (mostly attachments)

I haven't found an answer to this question on here, and I'm surprised it's not something that's built-in to Confluence.

What I'd like is to get a summary report by space. Most importantly, count and size of attachments, but general information about each space would be useful as well (e.g. number of pages, pages per day created, etc.).

This doesn't have to be in a Confluence page, so any sort of solution would suffice.

3 answers

1 accepted

Hi Thomas,

Apparently this feature is still not there in Confluence yet. There are almost 2 quite similar new feature request that you can vote, comment, and watch it:

If you are from using OnDemand, then this is information is something that you cannot get access of. However, if you are using Behind The Firewall server, then the workaround would be to make a full export of your space (ensure you ticked the box "Include hidden pages") and check the size of the export later.

Cheers!

grumble grumble grumble

I voted on CONF-11155 as it most matches what I'm looking to do. Thanks!

Thomas, if you still need this, try https://answers.atlassian.com/questions/93767/information-about-disc-space-used-by-different-spaces. It's a user macro that gives you that information plus some. It only reports the MB size of the attachments and not the whole space though.

This is for SQL 2016, just fyi it is case sensitive. I also have a conversion for MB convert(decimal (8,2), (sum(LONGVAL) / 1024.)/1000).

 

select
s.SPACEKEY,
-- sum(LONGVAL)
convert(decimal (8,2), (sum(LONGVAL) / 1024.)/1000)
FROM
CONTENTPROPERTIES cp
JOIN CONTENT c
ON
cp.CONTENTID = c.CONTENTID
JOIN SPACES s
ON
s.SPACEID = c.SPACEID
WHERE
c.CONTENTTYPE = 'ATTACHMENT'
AND
cp.PROPERTYNAME = 'FILESIZE'
GROUP BY
s.SPACEKEY
;

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

262 views 11 10
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