Listing open and resolved comments from each page in a space

Scenario

In this recipe, we'll build a report that lists the number of open and resolved comments in each page in a space.

You may also see this recipe in action on our Demo site!


Result


Recipe

Ingredients

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Report Table macro.

  2. Within the Report Table macro, create a Content Reporter macro and set Types to "page". 

  3. Inside the Content Reporter macro, create an And Filter macro.

  4. Inside the And Filter macro add a Text Filter and set Key to page:all comments>collect "inline-status" and tick the Required checkbox.

  5. Add another Text Filter and set the following:
    Key to page:all comments>collect "inline-status"
    Exclude to .*Dangling.*
    Tick the Required checkbox.

  6. Inside the Report Table macro, create a Report Column macro and set the Title to "title/page".

  7. Within the Report Column macro, add a Report Info macro and set the Key to page:title and Link to True.

  8. Inside the Report Table macro, create a Report Column macro and set the Title to "# Open Comments"

  9. Within the Report Column macro, add a Report Info macro and set the Key to page:all comments>collect "inline-status">join with " ">find "Open">size

  10. Inside the Report Table macro, create a Report Column macro and set the Title to "# Resolved Comments"

  11. Within the Report Column macro, add a Report Info macro and set the Key to page:all comments>collect "inline-status">join with " ">find "Resolved">size