I would like to display the Space Category (aka Team Labels) on each page of the space.
Is this possible to do using just user macros? Is there a plugin that will display information?
Confluence version 3.5.5
Thanks
Community moderators have prevented the ability to post new answers.
Hi Chris
The following user macro would display the team labels of the current space on a page:
## @noparams #set($containerManagerClass = $content.class.forName('com.atlassian.spring.container.ContainerManager')) #set($getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null)) #set($containerManager = $getInstanceMethod.invoke(null,null)) #set($containerContext = $containerManager.containerContext) #set($spaceLabelManager = $containerContext.getComponent('spaceLabelManager')) <p> Team Labels of space "$space.name": $spaceLabelManager.getTeamLabelsOnSpace($space.key) </p>
But it would be more elegant to solve this with a plugin.
Hope this helps
Cheers
Remo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.