Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically display user viewing page

Larry Barker
Contributor
June 28, 2020

I'm trying to put together an onboarding guide using the default Confluence template. It begins with something like:

 

"Hi, <employee name>!"

 

I'm trying to figure out how to display the name of the user viewing the page? Obviously inserting a profile macro won't work because you must specify the user before hand.

 

I did some searching, and reach the doc's on the Profile macro, and it seems I should be able to use something like this:

 

{profile:user=$req.userPrincipal.name}

 

However, this does not work?

 

It's a bit frustrating that Jira provides these templates but does not make them "usable" in the sense that with how the template is currently setup, I would have to personalize the template for each new hire.

 

Maybe I'm thinking of this the wrong way, but what options are there for displaying information about the viewer on the page?

 

Thanks!

1 answer

1 vote
Jack Brickey
Community Champion
January 10, 2022

While $currentuser is possible in the Meeting notes blueprint template it is not available in the standard templates. There was an old suggestion for this but it appears to have been closed as not being considered - CONFSERVER-30567 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events