Add Page Properties Report macro

This commit is contained in:
Manuel Rüger 2023-05-24 19:23:40 +02:00
parent 3307f329d9
commit 28ee195a77
2 changed files with 15 additions and 0 deletions

View File

@ -427,6 +427,11 @@ By default, mark provides several built-in templates and macros:
* template: `ac:contentbylabel` to display a list of pages, blog posts or attachments that have particular labels
- CQL: The CQL query to discover the content
* template: `ac:detailssummary` to show summary information from one page on a another page
- Headings: Column headings to show
- CQL: The CQL query to discover the pages
- SortBy: Sort by a specific column heading
* macro `@{...}` to mention user by name specified in the braces.
## Template & Macros Usecases

View File

@ -347,6 +347,16 @@ func templates(api *confluence.API) (*template.Template, error) {
`</ac:structured-macro>`,
),
/* https://confluence.atlassian.com/conf59/page-properties-report-macro-792499165.html */
`ac:detailssummary`: text(
`<ac:structured-macro ac:name="detailssummary" ac:schema-version="2">`,
`<ac:parameter ac:name="headings">{{ .Headings }}</ac:parameter>`,
`<ac:parameter ac:name="sortBy">{{ .SortBy }}</ac:parameter>`,
`<ac:parameter ac:name="cql">{{ .CQL }}</ac:parameter>`,
`</ac:structured-macro>`,
),
// TODO(seletskiy): more templates here
} {
templates, err = templates.New(name).Parse(body)