Show recently updated pages in a table

Show recently updated pages in a table

Let's show what pages have recently been updated in the Confluence instance and display them in a table. Let's also show who created the updated pages and who modified them by displaying their avatar image.

Ingredients

Apps

Reporting for Confluence Data Center

Macros

Content Reporter, Date Sort, Report Column, Report Image, Report Info, Report Table

Suppliers

Content Supplier, User Supplier

Guide

  1. Create a Report Table macro with the Maximum Results parameter set to 5.

  2. Within the Report Table, create a Content Reporter macro with the following parameters:

    • Set the Spaces parameter to @all.

    • Set the Type parameter to pages.

    • Set the Time Period parameter to 30d.

  3. Within the Content Reporter macro, create a Date Sort macro with the following parameters:

    • Set the Key parameter to content:modification date.

    • Set the Order parameter to descending.

  4. Under the Content Reporter macro, within the Report Table macro, create a Report Column macro with the Title parameter set to Page Title.

  5. Within the Page Title Report Column macro, create a Report Info macro with the following parameters:

    • Set the Key parameter to content:title.

    • Select the Link To Item checkbox.

  6. Under the Page Title Report Column macro, within the Report Table macro, create another Report Column macro with the Title parameter set to Space.

  7. Within the Space Report Column macro, create a Report Info macro with the following parameters:

    • Set the Key parameter to content:space.

    • Select the Link To Item checkbox.

  8. Under the Space Report Column macro, within the Report Table macro, create another Report Column macro with the Title parameter set to Created.

  9. Within the Created Report Column macro, create a Report Info macro with the following parameters:

    • Set the Key parameter to content:creation date.

    • Select the Link To Item checkbox.

  10. Under the Created Report Column macro, within the Report Table macro, create another Report Column macro with the Title parameter set to Updated.

  11. Within the Updated Report Column macro, create a Report Info macro with the following parameters:

    • Set the Key parameter to content:modification date. 

    • Select the Link To Item checkbox.

  12. Under the Updated Report Column macro, within the Report Table macro, create another Report Column macro with the Title parameter set to Author.

  13. Within the Author Report Column macro, create a Report Image macro with the Key parameter set to content:creator > user:picture.

  14. Under the Author Report Column macro, and still, within the Report Table macro, create another Report Column macro with the Title parameter set to Modifier.

  15. Within the Modifier Report Column macro, create a Report Image macro with the Key parameter set to content:modifier > user:picture.

  16. Click Save and check out the results.

Macro structure

Notes

The Report Image macros use a special type of Key that looks like content:modifier > user:picture. These are called keychains and they string together keys to provide the macro with more data from Suppliers for Reporting. For more details about keychains, see Supplier Keychains.