How to create a report of Confluence pages that don't have {attachment-data}?

hcfb ru July 14, 2011

I have bunch of pages, designed on live-template. I would like to create report, which give me pages with no attachment included. Attachments are included using {attachment-data} macro.

I've tried to find out filter on {attachment-data}, bud did not found any.

is there any way to do this?

thanks,

Andrew

1 answer

0 votes
Kevin Buchs
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 Leaders.
July 20, 2011

The following gives you the list of all pages in a space, ordered by length of the list of attachments (in characters). So, those with 0 attachments start at the top. I tried to filter by the length of the attachment list and could not get that to work. The scope of the page search can be controlled by the content reporter such that you only list descendants or children of a parent.

h2. Pages, sorted by attachments (0 attachments first)
{report-block} 
{content-reporter:space=YOURSPACEHERE|types=+page}
{text-sort:content:attachments|order=descending} 
{content-reporter} 
{report-body}> {report-info:page:title|link=true} = {report-info:content:attachments}\\ 
 
{report-body} 
{report-block}
{anchor:comment1   the following does not seem to work in the content reporter above.      text-filter:content:attachments|maxLength=10  }

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events