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.
Hello
I'm trying to add the user profile of the current user to the personal space blueprint, so that when that space is created, it's pre-populated with their profile information.
I can't seem to find a way to make that work. I can select the user profile macro, but it forces me to select a specific user vs something like a variable.
Any suggestions?
thanks
Hello there!
Thanks for reaching to the Community Peter. Currently, the User Profile macro can not perform the requested task. It will take the value (username) and display information based on that. You can check further information here:
In Confluence Cloud we could use the Space Details Macro. Which should display to us who created the space, but not much more than that:
Confluence Cloud | Space Details Macro
If you are on Confluence Server though, we can have something along these lines as user macro:
## @noparams
<div class="aui-message aui-message-info">
#set ($creator=$space.getCreator())
Creator Name: $creator.getFullName()<br>
Creator Email: $creator.getEmail()<br>
Space Creation Date: $action.dateFormatter.formatGivenString("yyyy-MM-dd", $space.getCreationDate())
</div>
This, #set ($creator=$space.getCreator()) sets the variable $creator with the value of the user object that is attributed to the creator of the current space.
This Creator Name: $creator.getFullName()<br> will get the fullname of the creator.
This Creator Email: $creator.getEmail()<br> will display the creator email on screen.
You can check more information here:
Confluence Server 6.14.0 Classes
Confluence Server | ConfluenceUser
Confluence Server | ConfluenceEntityObject
Confluence Server | User Macro Guide
Confluence Server | Writing User Macros
Due to some differences between Confluence Cloud and Server, user macros are not available in Cloud:
Functional Differences in Atlassian Cloud
Hey, after you try one of the options above let us know the results. Looking forward to find a solution to this thread!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.