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

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?



1 answer

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-body}> {report-info:page:title|link=true} = {report-info:content:attachments}\\ 
{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
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 Apr 13, 2018 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...

2,831 views 27 11
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