Show recently updated pages

Show recently updated pages

Let's show what pages have been recently updated in the Confluence instance and render them in a block of text. Let’s also format the text block so it displays the results neatly.

Ingredients

Apps

Reporting for Confluence Data Center

Macros

Content Reporter, Date Sort, Report Block, Report Body, Report Info

Suppliers

Content Supplier

Guide

  1. Create a Report Block macro with the following parameters:

    • To limit the results, set the Maximum Results parameter to 5.

    • To format the resulting block of text so it will be easier to read, set the Separator parameter to newline.

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

    • Set the Spaces parameter to @all so the macro will look in every space in the Confluence instance.

    • Set the Types parameter to page.

    • Set the Time Period parameter to 30d.

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

    1. Set the Key parameter to content:modification date.

    2. Set the Order parameter to descending.

  4. After the Content Reporter macro and still, within the Report Block macro, create a Report Body macro.

  5. Within the Report Body macro, create three Report Info macros as follows:

    • For the first Report Info macro, set the Key to content:title.

    • For the second Report Info macro, set the Key to content:modifier.

    • For the third Report Info macro, set the Key to content:modification date.

    • Optionally, select the Link to Item option for each macro so that the results render as hyperlinks.

    • Add some text to give context to the three Report Info macros. Something like this:

  6. Click Save and view the results.

Macro structure