Showing 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 Server |
---|---|
Macros | Content Reporter, Date Sort, Report Column, Report Image, Report Info, Report Table |
Suppliers | Content Supplier, User Supplier |
Guide
Create a Report Table macro.
Set the Maximum Results parameter to "5".Within the Report Table, create a Content Reporter macro.
Set the Spaces parameter to "@all".
Set the Type parameter to "pages".
Set the Time Period parameter to "30d".Within the Content Reporter macro, create a Date Sort macro.
Set the Key to "content:modification date" and the Order to "descending".Under the Content Reporter macro, but within the Report Table macro, create a Report Column macro.
For the Title parameter, type in "Page Title".Within the Page Title Report Column macro, create a Report Info macro.
For the Key, type in "content:title" and check Link To Item.Under the Page Title Report Column macro, and still, within the Report Table macro, create another Report Column macro.
For the Title parameter, type in "Space".Within the Space Report Column macro, create a Report Info macro.
For the Key, type in "content:space" and check Link To Item.Under the Space Report Column macro, and still within the Report Table macro, create another Report Column macro.
For the Title parameter, type in "Created".Within the Created Report Column macro, create a Report Info macro.
For the Key, type in "content:creation date" and check Link To Item.Under the Created Report Column macro, and still within the Report Table macro, create another Report Column macro.
For the Title parameter, type in "Updated".Within the Updated Report Column macro, create a Report Info macro.
For the Key, type in "content:modification date" and check Link To Item.Under the Updated Report Column macro, and still, within the Report Table macro, create another Report Column macro.
For the Title parameter, type in "Author".Within the Author Report Column macro, create a Report Image macro.
For the Key, type in "content:creator > user:picture".Under the Author Report Column macro, and still, within the Report Table macro, create another Report Column macro.
For the Title parameter, type in "Modifier".Within the Modifier Report Column macro, create a Report Image macro.
For the Key, type in "content:modifier > user:picture".You should now have something that looks like this:
Now click Save and check out the results.
Notes
The report-image macros use a special kind of Key that looks like this: "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 information on Keychains, view the Supplier Keychains page.
Result
Not applicable.
Â
Â