templateType | template |
---|
templateOption | {"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"} |
---|
templateTypeOption | {"label":"Confluence template/blueprint","value":"template"} |
---|
templateId | 979936585 |
---|
excerpt | Scenario This recipe shows you how to filter the page results based on the user. As the example in the result, we are filtering the page that have created by 'Kevin Lew' and display the page information in a table. Result Recipe Apps Scaffolding Forms & Templates, Reporting for Confluence Server & Data Center Level Intermediate Estimated time 15 minutes Macros Content Reporter, Report Column, Report Info, Report On, Report Variable, Text Filter, Text Sort Suppliers Page Supplier, Scaffold Data Supplier, User Supplier Storage format You can copy and paste this code into the Confluence Source Editor : Choose User to filter myUser auto complete INLINE confluence-users true INLINE data:myUser>join with " ">text:find .*?'.*?'.*? X %match:value>match "(.*?)\\u0027(.*?)\\u0027(.*?)">group 2% INLINE true page %variable:X% page:creator>user:name page:creator>user:name Page Title true page:title Created Date page:creation date Last Updated page:modification date true Page Creator true page:creator>user:name Macro structure You can recreate the example in the editor view: Steps Add a 2 x 1 table. Set first column as Header and write " Choose User to filter ". In second column, create a List Data macro and set the following parameters: Field Name: myUser Type: auto complete Required: uncheck Allow Multiple: uncheck Within List Data macro, create User Options macro. Set Groups to "confluence-users". Under the table, create Report On macro and set the following parameters: Key: data:myUser>join with " ">text:find .*?'.*?'.*? Injected: checked Within Report On macro, create Report Variable macro and set the following parameters: Name : "X" Value : %match:value>match "(.*?)\\u0027(.*?)\\u0027(.*?)">group 2% Under Report On macro, create Report Table and tick Injected parameter. Within Report Table macro, create Content Reporter macro and types set it to " pages ". Within Content Reporter macro, create Text Filter macro and set the following parameters: Key : page:creator>user:name Exact Value : %variable:X% Within Content Reporter macro and under Text Filter macro, create Text Sort macro and set the following parameters: Key : page:creator>user:name Order : ascending Under Content Reporter macro, create four Report Column macros. Set the first Report Column macro's Title to " Page Title " and add a Report Info macro within it. Set the Report Info macro's Key to " page:title ". Tick the Link To Item. Set the second Report Column macro's Title to " Creation Date ". Set the Report Info macro's Key to " page:creation date ". Set the third Report Column macro's Title to " Modification Date ". Set the Report Info macro's Key to " page:modification date ". Set the forth Report Column macro's Title to " Page Creator ". Set the Report Info macro's Key to " page:creator>user:full name ". Tick Link To Item. Line-by-Line Explanation N/A |
---|
fieldGroupKeys | {"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_lucg339iwy"]} |
---|
|