Listing Attachments from Current Page

Scenario

The Attachments macro could display a lot of information so, to simplify the amount of attachment data presented, follow this next recipe.

The recipe displays attachments from the current page into a neat simple table sorted by filename.

Looking for Confluence Cloud recipes?

This recipe is for the Confluence Server & Data Center version of the app. If you are interested in Reporting for Confluence Cloud recipes, refer to this page.

Result

File NameCommentSize
Diamond Heart.gifA Diamond Heart icon3 kB
Macro Structure.pngA screenshot image for this recipe32 kB
Princess Round.gifA Princess Round icon3 kB
Sapphire Square.gifA Sapphire Square icon2 kB


Recipe

Ingredients

Apps

Reporting
Platform
N/A
Level

EASY

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Report Table macro.

  2. Inside that Report Table macro, create a Local Reporter macro.
    For the Key, specify content:attachments.

  3. Within the Local Reporter macro, create a Text Sort macro.
    For the Key, specify attachment:title.

  4. Create a Report Column macro within the Report Table macro, and add it below the Local Reporter macro.
    For the Title, specify "File Name".

  5. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:title.

  6. Within the Local Reporter, create another Report Column.
    For the Title, specify "Comment".

  7. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:comment.

  8. Within the Local Reporter, create another Report Column.
    For the Title, specify "Size".

  9. Within the Report Column macro, create a Report Info macro.
    For the Key, specify attachment:nice file size.

  10. Lastly, within the Local Reporter, create a Report Empty macro.