How do I skip the Page Template Assistance when inserting a $documentOwner value?

$documentOwner.png

This should be added automatically when you create a template, not ask you to manually insert the document owner, that's the whole purpose of using $documentOwner value isn't it?

How do I get rid of this second step and made my template automatically fill that row with the person that creates an "Expedite Product Requirement" (this is the name of my template)???

1 answer

1 accepted

0 vote
Stephen Deutsch Community Champion Jan 26, 2018

Hi Jose,

Instead of using a template variable (because Confluence has no way of knowing that it should fill in the page creator name in the $documentOwner variable), a better way would be to use a user macro.

Just create a new user macro with the key "document-owner", name "Document Owner", and with template text like this:

## @noparams
$content.creator.fullName

You can choose whether you want everyone to be able to see the macro in the macro chooser or just a Confluence administrator (the macro will still work for everyone if you put it in a page/template though).

Insert this "Document Owner" macro in the right space in the template, and then it should show the name of the person who created the template.

Wow! it worked, Thanks a lot Stephen, appreciate your help!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 7 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

54 views 3 4
View question

Atlassian User Groups

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!

Find my local user group

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

Groups near you