Hi,
I have a user macro where one of the required parameters is the 'page owner', i.e. the username of the person charged with keeping the page up to date. I want the default value for this parameter to be the username of the page creator. This I am trying to achieve by passing $action.remoteUser.name to the parameter:
## @param Owner:title=Owner|type=username|required=true|default=$action.remoteUser.name
However, the string '$action.remoteUser.name' is simply rendered as plain text in output. I have also tried to do it by setting a custom variable first, i.e.:
#set($ownerName = $action.remoteUser.name) ## @param Owner:title=Owner|type=username|required=true|default=$ownerName
But the result is the same. Can I pass a variable default value to the parameter somehow? It seems like this would be a trivial thing, so perhaps I am going about it the wrong way? Thanks in advance for any help!
Best,
Wouter
Hi, I'm currently facing the same problem. Did you found out by now how this can be achieved?
Thanks
Hi, I'm afraid not. Have put my project on hold for now... :/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.