Reporting on Space Page Counts

Hello,

I am attempting to run a report using the reporting plugin to get a page count in all the spaces that we have in our instance of Confluence. The report is not running as I want or not at all. Here is the code I am using, I just do not see where it is going wrong:

{report-block}

{space-reporter:space=@all}
{space-reporter}

{report-header}h2. Space page Counts{report-header}

{report-body}
*Number of pages in Space:*{report-info:space:all pages > collection:size}
----
{report-body}

{report-empty}
_Nothing to report_
----
{report-empty}
{report-block}

I get the following error when I attempt to save the page:

Error formatting macro: report-block: java.lang.NoClassDefFoundError: com/atlassian/confluence/spaces/SpacesQuery
This is not currently in the context of a report.
This is not currently in the context of a report.
This is not currently in the context of a report.
This is not currently in the context of a report.

Not sure what the issue is, any help? Thanks!

1 answer

Just stumbled upon your question and wanted to confirm that your report works for me (Confluence 3.5.13). The error could be related to a problem during the installation of the plugin or a compatibility issue with your Confluence version. I would try to reinstall the reporting plugin and check whether all plugin modules are enabled.

I know this is an old question, but maybe it will help someone in the future.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 5 hours ago in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

18 views 0 3
Read article

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