I would like to know the number of pages that exist in a confluence-space, without a database-query.
I found this similar question : Solved: how to know number of Spaces and number of pages i... (atlassian.com)
But I cannot reproduce the accepted answer.
Can you help me reproducing this accepted answer or is there another solution?
Hi @Thomas Morcinek ,
1. Use Database query as mentioned in https://confluence.atlassian.com/confkb/how-to-find-the-number-of-pages-blogposts-and-attachments-in-a-space-720636388.html
2. If you don't have access to DB, I have a workaround. Not a good solution and may not fully as you expect.
Go to your space home page--> Click on "Delete".
A dialogue box shows up with the total number of pages. You can find the count there and click on Cancel
This will not show page count which are not child pages of home page
Here's a simple user macro you can add:
#set($containerManagerClass=$content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set($getInstanceMethod=$containerManagerClass.getDeclaredMethod('getInstance',null))
#set($containerManager=$getInstanceMethod.invoke(null,null))
#set($containerContext=$containerManager.containerContext)
#set($pageManager=$containerContext.getComponent('pageManager'))
#set($topicCount=$pageManager.getPages($space,true).size())
As of now, the topic count for this space equals $topicCount.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online 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.