Listing Links to All Space Templates

Scenario

It can be a tedious task to view all space templates in every space on a Confluence instance. The following recipe generates a report listing the links to all space templates for quick and immediate access.



Result


Recipe

Ingredients

Add-ons

Platform

N/A

Level

EASY

Estimated time

10 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. The report will be formatted as a table with Report Table.

  2. Space Reporter is used to retrieve all spaces in Confluence, with 'spaces' parameter is set to '@all'.

  3. Two columns is created using Report Column, with title set accordingly. Second column's 'injected' parameter is set to true to allow injection of supplier at #5.

  4. Name of each spaces retrieved from Space Reporter is displayed via Report Info, setting supplier key to 'space:name'.

  5. The link to each space's space templates page is created with Link to Location. Location parameter is set to 'space templates'. Link Text parameter is set to 'Link'. To indicate the space of the link it's referring to, the 'space' parameter is set to '%space:key%'. The enclosing '%' sign indicates injected value, meaning that it will retrieve the supplier value within to inject into the macro parameter before the macro is rendered.