Is there a way (similar to $body) for me to display the currently logged in user? Or at least somehow obtain the user's full name?
Community moderators have prevented the ability to post new answers.
To get the full name, you can use: $action.remoteUser.fullName
I'm not sure what you mean by "display the currently logged in user" but if you can elaborate, we might be able to help out there too.
[edit] You may find this to be a helpful reference: https://developer.atlassian.com/display/CONFDEV/Confluence+Objects+Accessible+From+Velocity
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i use
#set( $username = "$req.getRemoteUser()" )
cheers
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.