...
Hence, by excluding the labels categories that are not changing, we can quickly get the ones that keep changing.
Result
...
Recipe
Apps | Reporting for Confluence Server & Data Center |
---|---|
Level | Intermediate |
Estimated time | 30 minutes |
Macros | Content Reporter, Expanding Reporter, Grouping Reporter, Report Body, Report Info, Report List, Text Filter, Text Sort |
Suppliers | Content Supplier, Expanded Supplier, Grouped Supplier, Label Supplier |
Storage format
You can copy and paste this code into the Confluence Source Editor:
...
You can recreate the example in the editor view:
...
Steps
Add a Report List macro.
Inside it, add a Grouping Reporter and a Report Body macro.
For the Grouping Reporter macro, set the following settings:
Key = expanded:myLabel
As = myUniqueLabelInside the Grouping Reporter macro, add the following macro with the settings:
Expanding Reporter macro
Key = content:labels
As = myLabelText Filter macro
Key = grouped:myUniqueLabel
Exclude = add the excluded labels here with 'pipe' as the separator, for example, lab1|lab2|lab3If there is another label category that needs to be excluded, add another Text Filter macro.
Then, inside the Expanding Reporter macro above, add the following macro with the settings:
Content Reporter macro
Text Filter macro
Key = label:title
Navigate to the Report Body macro that is created alongside the Grouping Reporter macro, add the following macro inside it:
Report Info macro
Key = grouped:myUniqueLabel
Link to item = enabled
...