Hello community,
I try to write a Page Approved User Macro.
The variable $username should show who added the Macro.
#set ($username="$req.getRemoteUser()" )
<th class="confluenceTh"><p>Approved:</p></th><td class="confluenceTd"><p>$username</p></td>
But this shows always the loggend in user. I thought with #set its possible to save the current user and display it later with $username.
can you help me?
$req is the incoming http call, not the page object, that's why it renders the current user.
You should be looking at $content
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.