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!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Community, Jessica here from the Confluence Product Marketing team! July’s community challenge is all about sharing pictures — and as an extension of our first post on what ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs