The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Reporting on Space Page Counts

Daniel Stavrou
September 7, 2011

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Remo Siegwart
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 12, 2011

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.

TAGS
AUG Leaders

Atlassian Community Events