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 By default using Reporting on Scaffolding's Content Options macro will only display content in plain text but if you want the content to be hyperlinked, you may use the following recipe. Reporting allows you to use regular expressions  (regex) to look for specific patterns and get data that's relevant to you. Using regex we will grab metadata from the Content Options macro, specifically the page title and page ID. The page title is used as the label for link Page ID is used as the link URL which has been embedded within the  Report Link macro Reporting contains a  Text Supplier and Match Supplier   which can be used to manipulate data from a Confluence instance. In this recipe, the  Text Supplier and Match Supplier  are used for generating links for the Content Options macro. Result Recipe Apps Scaffolding Forms & Templates for Confluence Server and Data Center, Reporting for Confluence Server & Data Center Level Advanced Estimated time 20 minutes Macros Report Info, Report Link, Report On Suppliers Match Supplier, Scaffold Data Supplier, Text Supplier Storage format You can copy and paste this code into the Confluence Source Editor : INLINE data:link>join with " ">find ".*?v.*?\\(.*?\\)" https://apps-demo.servicerocket.io/confluence-6.15.0/pages/viewpage.action?pageId= INLINE match:value>match "\\u0028(\\d*)\\u0029">group 1 match:value>match "page.(.*?)v.*?\\u0028(.*?)\\u0029">group 1 Macro structure You can recreate the example in the editor view: Steps Add a Report On macro. Set its Key parameter to " data:content_reporter_name>join with " ">find ".*?v.*?\\(.*?\\) ". Within the  Report On macro, add a Report Link macro. Set its  Key parameter to " match:value>match "\\u0028(\\d*)\\u0029">group 1" and URL Prefix parameter to "Confluence URL/pages/viewpage.action?pageId= ". Add a Report Info macro and set its Key parameter to " match:value>match "page.(.*?)v.*?\\u0028(.*?)\\u0029">group 1 ". Line-by-Line Explanation N/A
fieldGroupKeys{"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_56ujhhprxf"]}