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 Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,223 views 6 19
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot