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

Accepted Answer
0 votes
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
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

338 views 0 8
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