Forgive me as I am new to writing macros in Confluence... Is it possible to get the name of a space by providing the space key? i.e.
#set ( $spaceKey = 'SUBSPACEKEY' )
#set ( $spaceName = $space.getName($spaceKey) )
I understand I can get the "current" space name from $space.getName() however this will not work for me as I have a user macro that will be pointing at a different space...
Community moderators have prevented the ability to post new answers.
Try:
$spaceManager.getSpace($spaceKey).getName()
Infornation about what variables are available in your velocity template are available here: https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity<br< a="">>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
$space.getName()
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.