You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'd like to display in the page properties report the label assigned to a page in the Decision log. I see there is a way to display a label when using the content by label macro. In that macro there is a choice to display a label (show labels for each page). I do not see a way to display a label in the page properties report macro. Our users would like to see the label as a column to see as well as sort by. We make many decisions on our project and are using the decisions log to track our decisions. We want to categorize our like decisions and be able to see and sort by those categories. We are trying to use labels as a way to categorize our decisions.
Hello there!
Suzanne, you should be able to achieve this indeed. We will need to create a User macro. Here, let us start by creating the user macro:
Creating this user macro:
- Click the Cog Icon
> General Configuration > User macros.
- Once there, click create a user macro right at the bottom
- Under macro name, type a name for your macro (label-list for example)
- Select the desired macro visibility
- Type a macro title (Label List in our case)
- Select No Macro Body
- Inside the Template field, paste this code:
## @noparams
#set($currentPage = $pageManager.getPage($content.getId()))
#set($pageLabels = $currentPage.getLabels())
<span>
#foreach( $labelObject in $pageLabels )
<span class="aui-label">$labelObject.name</span>
#end
</span>8. Save
After the macro is created, we will then need to insert it into a Page Properties macro. Here is how mine looks like:
As you can see, the page labels are displayed within the table I created for the Page Properties macro with no problem. Now, when we use the Page Properties Report macro, my labels look like this:
Notes:
So, let us know if this helps you out Suzanne!
Hello,
This user macro works very well thanks.
Would it be possible to add to this macro the feature to hide some labels? In the Page Properties Report some pages are labeled as "favourite", and there is also the label I use to gather the pages in the Page Properties Report.
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.