Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scaffolding Cloud: Converted Scaffolding Server macros to Scaffolding Cloud macros.
Live template
templateTypetemplate
templateOption{"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId979936585
excerptScenario There may be times when it is useful to look for pages that are created from Global Templates. If you are planning on migrating to Confluence Cloud, there is a CCMA limitation on migrating Global Templates ( Atlassian b ug report: MIG-190 ). So, you will need to convert your Global Templates into Space Templates (more details here ) and this recipe may be helpful for you. This recipe generates a list of pages that are created from Global Templates. To display the list of pages using that template, you will need to provide the name of the Global Template into the report. Result Recipe Apps Reporting for Confluence Server & Data Center, Linking for Confluence Server Level Choose one: Easy / Intermediate / Advanced Estimated time 10 minutes Macros And Filter, Content Reporter, Or Filter, Report Column, Report Info, Report Table, Text Filter, Text Sort Suppliers Body Supplier, Collection Supplier, Content Supplier, Page Supplier, Text Supplier Storage format You can copy and paste this code into the Confluence Source Editor : Find pages that are created from Global Templates Notes Results are limited to pages from the current space ( Content Reporter > Spaces:@self ) This report will search into the pages' storage format to match the name of the Global Template ( Text Filter > Contains Value: {name of the global template }) This report requires the following add-ons: Reporting Linking (optional) live-template true content:body>text GlobalTemplate1 true content:body>text GlobalTemplate2 true content:body>text page:modifcation date page:version comment .*:.* page:title Search for Pages created from Global Templates page:title Space true content:space Page Title true page:title Created dd MMM, yyyy content:creation date by true content:creator Page ID true page:id Last Modified dd MMM, yyyy content:modification date by true content:modifier Last version comment page:version comment true Links Page Info page info History page history true Actions true Edit page edit Remove page remove Macro structure You can recreate the example in the editor view: Steps Add a Report Table macro. Within the Report Table macro, add a Content Reporter macro and set Spaces to " @self ".  Inside the Content Reporter macro, add an And Filter macro. Inside the And Filter macro add a Text Filter and set the following: Key to content:body>text Contains Value to live-template Tick the Required checkbox Right below the Text Filter , add an Or  Filter  and inside it add two Text Filter   macros ( to search for multiple Template names ) and set the following for each: Key to content:body>text Contains Value to GlobalTemplate1 (Change this value to your Global Template name). For the second Text Filter macro, set Contains Value to   GlobalTemplate2. Tick the Required checkbox Outside the And Filter macro, add two Text Sort macros and set the following values respectively: Key to page:modifcation date Key to page:version comment Below the Text Sort macros,  add two Text Filter macros. For the first Text Filter macro, set the following values: Key to page:title Exclude to .*:.* (This will omit any pages that contain : in their page title.) For the second Text Filter macro, set the following values: Key to page:title Exclude to Page Title (Change this value to the title of the page this report resides on.) Now, create the table columns below by following these steps: Column Steps Space Inside the Report Table macro, add a Report Column macro and set the Title to " Space" . Then add a Report Info macro and set the Key to content:space and Link to True. Page Title Add another Report Column macro and set the Title to " Page Title" . Then add a Report Info macro and set the Key to page:title and Link to True. Created  Add another Report Column macro and set the Title to " Created" . Then add a Report Info macro and set the Key to content:creation date and set the Format  to dd MMM, yyyy . Then, type "by" and add another Report Info macro. Set the Key to content:creator and Link to True. Page ID Add another Report Column macro and set the Title to " Page ID" . Then, add a Report Info macro and set the Key to page:id  and Link to True. Last Modified Add another Report Column macro and set the Title to " Last Modified" . Then add a Report Info macro and set the Key to content:modification date and set the Format  to dd MMM, yyyy . Then, type "by" and add another Report Info macro. Set the Key to content:modifier and Link to True. Last version comment Add another Report Column macro and set the Title to " Last version comment" . Then add a Report Info macro and set the Key to page:version comment . Links Add another Report Column macro and set the Title to "Links" and set Injected to True. Then add a Link to Location macro and set Location  to page info and Link Text to "Page Info " . Then add a Link to Location macro and set Location  to page history and Link Text to "Page History " . Actions Add another Report Column macro and set the Title to "Actions" and set Injected to True. Then add a Link to Location macro and set Location  to page edit and Link Text to "Edit" and Content to %title%. Then add a Link to Location macro and set Location  to page remove and Link Text to "Remove " and Content to %title%. How to use the report This report will search through the storage format of all the pages from the current space. It will search for the name of the Global Template defined in the Text Filter macros. For example, if the name of the global template is GlobalTemplate1 , edit the Text Filter macro and enter the name of the global template in the the Contains Value field to get the list of pages using the template. ( See image below. ) This Text Filter macro will make sure that only pages with the Live Template macro are listed. To search for a global template, edit the Text Filter macro. In the Contains Value field, enter the name of the global template. This Text Filter is used to exclude the Reporting page from appearing in the results. Because the report is searching through the storage format, and the template name exists on the Reporting page, we add the Reporting page title into the Exclude field. Feel free to change this value according to your Reporting page title. Line-by-Line Explanation N/A
fieldGroupKeys{"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_pjusepz81f","net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_1_pjusepz81f"]}