<strong><a href="https://docs.atlassian.com/confluence/latest/com/atlassian/confluence/plugins/macros/dashboard/DashboardMacroSupport.html#getFavouriteSpaces()" rel="nofollow noopener noreferrer">getFavouriteSpaces</a></strong>()
can anybosy help, how can we use it in a user macro.
This should do it.
## Developed by: Davin Studer ## Date created: 06/10/2013 ## @noparams #set( $labelManager = $action.LabelManager ) #set( $favRef = $labelManager.getLabel("my:favourite") ) #if($favRef) #set( $favorites = $labelManager.getCurrentContentForLabel( $favRef ) ) #if($favorites.size() > 0) <ul> #foreach( $favorite in $favorites ) #if ( $favorite.getType() == "spacedesc" || $favorite.getType() == "personalspacedesc" ) <li><a href="$favorite.UrlPath">$favorite.DisplayTitle</a></li> #end #end </ul> #end #end
Perfect!
It looks like you're new here. Sign in or register to get started.