<#ftl output_format="JSON"> <#-- The macro for generating template metadata for a new report --> <#macro newReport request recipeObjectId objectType uuid name description urlStub uiExpr adminGroups viewerGroups triggers=""> { <#-- recipe section --> "version": 2, "objectType": "${objectType}", "replaceable": false, "recipeObjectId": "${recipeObjectId}", "objectStatus": "NEW", "templateForCreate": "ix/v2/createReport_v2.ftlx", "selectedObjectIndex": 0, "isVisible": true, <#if triggers?has_content> "triggers": ${triggers}, <#-- the set of new and reused objects --> "objects": [ { "objectStatus": "NEW", "templateObjectId": "${recipeObjectId}-0", "objectIndex": 0, <#-- bindings section --> "uuid": "${uuid}", "versionUuids": ["${uuid}"], "reportType": <#if objectType == "TEMPO_REPORT">"tempo"<#else>"task", <#if adminGroups?has_content> "adminOwnerGroups": ${adminGroups}, <#if viewerGroups?has_content> "viewerGroups": ${viewerGroups}, "uiExpr": "${uiExpr}", "urlStub": "${urlStub}", <#-- i18n section --> "name": "${name?json_string}", "description": "${description?json_string}" } ] }