templateType | template |
---|
templateOption | {"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"} |
---|
templateTypeOption | {"label":"Confluence template/blueprint","value":"template"} |
---|
templateId | 979936585 |
---|
excerpt | Scenario The following recipe generates a report to find dormant or outdated pages that are not actively edited for a period of time. Result Recipe Apps Reporting for Confluence Server & Data Center, Scaffolding Level Easy Estimated time 15 minutes Macros Content Reporter, Date Filter, Report Column, Report Info, Report Table Suppliers Date Supplier, Report Supplier Storage format You can copy and paste this code into the Confluence Source Editor : Choose last modification date: Unmodified pages since myList true INLINE Six Months %global:current date > date:shift -6m > date:dd-MMM-yyyy% One Year %global:current date > date:shift -1y > date:dd-MMM-yyyy% Two Years %global:current date > date:shift -2y > date:dd-MMM-yyyy% Three Years %global:current date > date:shift -3y > date:dd-MMM-yyyy% true page %data:myList>collection:first% dd-MMM-yyyy true content:modification date Page Tiltle true content:title Created dd-MMM-yyyy true content:creation date Updated dd-MMM-yyyy true content:modification date Author true content:creator Modifier content:modifier Macro structure You can recreate the example in the editor view: Steps Create a List Data macro, and set its Name to "myList". Within the List Data macro, create multiple List Options with different values as in the screenshot. Set Value to %global:current date > date:shift -1y > date:dd-MMM-yyyy% Change the key " shift - 1y " as desired (ie. -6m, -2y, or -10d). See Date Supplier . Now you can select the maximum date to for pages with updates. Create Report Table macro and check the Injected parameter to set it to True. Within the Report Table , create Content Reporter . Set the following parameters: Space: "@all" Types: " pages " Within Content Reporter macro , create Date Filter macro. Set the following: Key: content:modification date Required: " checked " Format: " dd-MMM-yyyy " Maximum Value: %data:myList>collection:first% Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Page Title" . Within the Report Column macro, create Report Info . And set the following: Key: content:title Link To Item: "checked" Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Created" . Within the Report Column macro, create Report Info . And set the following: Key: content:creation date Link To Item: "checked" Format: "dd-MMM-yyyy" Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Updated" . Within the Report Column macro, create Report Info . And set the following: Key: content:modification date Link To Item: "checked" Format: "dd-MMM-yyyy" Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Author" . Within the Report Column macro, create Report Info . And set the following: Key: content:creator Link To Item: "checked" Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Modifier" . Within the Report Column macro, create Report Info . And set the following: Key: content:modifier Link To Item: "checked" Within Report Table macro and outside Content Reporter macro, create Report Column macro and set Title to "Created" . Within the Report Column macro, create Report Info . And set the following: Key: content:creation date Link To Item: "checked" Line-by-Line Explanation N/A |
---|
fieldGroupKeys | {"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_zcbzqz9tu7gxlhcnsz36"]} |
---|
|