Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Live template
templateTypetemplate
templateOption{"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId979936585
excerptScenario In this recipe we'll report the pages that holds a label that matches the the logged in user. Result Recipe Apps Reporting for Confluence Server & Data Center Level Easy Estimated time 10 minutes Macros Content Reporter, Report Column, Report Info, Report Table Suppliers Global Supplier, User Supplier Storage format You can copy and paste this code into the Confluence Source Editor : Generating <h4 class="auto-cursor-target">Generating a report of pages that have labels 50 true %global:current user>user:name% title true page:title Label true page:labels> join with "," labels</h4> <p> <br/> </p> <ac:structured-macro ac:macro-id="687a3c4b-d8eb-4b8f-8831-0325192030b2" ac:name="report-table" ac:schema-version="1"> <ac:parameter ac:name="maxResults">50</ac:parameter> <ac:parameter ac:name="injected">true</ac:parameter> <ac:rich-text-body> <p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="e1ef115a-c940-46d4-b895-7b8d13a0ffed" ac:name="content-reporter" ac:schema-version="1"> <ac:parameter ac:name="labels">%global:current user&gt;user:name%</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="ab873efa-53b8-4070-9cbb-1462198fa8fe" ac:name="report-column" ac:schema-version="1"> <ac:parameter ac:name="title">title</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="c27b443f-4660-45f9-a686-363034f499b3" ac:name="report-info" ac:schema-version="1"> <ac:parameter ac:name="link">true</ac:parameter> <ac:parameter ac:name="">page:title</ac:parameter> </ac:structured-macro> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p> <ac:structured-macro ac:macro-id="ec34038f-1b6a-442f-b43e-deb50c3c84f5" ac:name="report-column" ac:schema-version="1"> <ac:parameter ac:name="title">Label</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="3b0b007c-0405-4e16-9c81-3664e9ac5d7b" ac:name="report-info" ac:schema-version="1"> <ac:parameter ac:name="link">true</ac:parameter> <ac:parameter ac:name="">page:labels&gt; join with ","</ac:parameter> </ac:structured-macro> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <p class="auto-cursor-target"> <br/> </p> Macro structure You can recreate the example in the editor view: Steps Create a Report Table   macro. Set the following parameters as stated: Injected:  True Max Results:   50 Insert Content Reporter macro and set the following: Labels:   %global:current user>user:name% Create a Report Column macro and give it a Title . Within the Report Column macro, create a Report Info macro. Set Key  to " page:title ". In the Report Table macro, create another Report Column macro and give it a  Title . Within the Report Column macro, create a Report Info macro. Set Key  to page:labels> join with "," . Line-by-Line Explanation N/A
fieldGroupKeys{"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_9minfltq657sjjkswm3b"]}