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
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.
Within the Report Block macro, create a Content Reporter macro with the following parameters:
Set the Spaces parameter to
@allso the macro will look in every space in the Confluence instance.Set the Types parameter to
page.Set the Time Period parameter to
30d.
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.
After the Content Reporter macro and still, within the Report Block macro, create a Report Body macro.
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:
Click Save and view the results.