This is applicable only for the Server version.
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.
You can copy and paste this code into the Confluence Source Editor:
You can recreate the example in the editor view:
- The report will be formatted as a table with Report Table.
- Space Reporter is used to retrieve all spaces in Confluence, with 'spaces' parameter is set to '@all'.
- 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.
- Name of each spaces retrieved from Space Reporter is displayed via Report Info, setting supplier key to 'space:name'.
- 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.