Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can you reference parent page in Excerpt Include Macro in template?

I want to be able to use Excerpt (macro) from a parent page when a report about this page is created using Create from template macro.

My use case: Parent page is a project tracking page with a summary, deliverables, and detailed requirements. 

I want to be able to create a weekly report from Create from Template macro - and include Action Items and Deliverables Status sections (both set as Excerpts) from parent page to this report. 

I cannot write User Macro due to Cloud Confluence limitation. 

What are my options?

4 answers

Hey, not for you Lena but I created a custom user macro for this.

 

## Developed by: Felix Schäfer & Alexander Wirtz
## Date created: 07/12/202

## @noparams

#set($parentId = $pageManager.getPage($content.id).parent.getContentId().asLong())
#set ($requestedPage = $pageManager.getPage($parentId).getTitle())

#if ($parentId)

<ac:macro ac:name="excerpt-include" ac:schema-version="1">
<ac:parameter ac:name="nopanel">true</ac:parameter>
<ac:default-parameter>$requestedPage</ac:default-parameter>

</ac:macro>

#else
Cannot show tasks on parent page because this page has no parent.
#end

I have the same requirement but for confluence server / data center. Did you found a solution?

If it is for the Cloud version - definitely yes!

I'm working on something to make this possible, but it would probably be a part of a paid add-on (at the lowest price I can set it), along with some other useful features. Would you be interested?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

37,609 views 27 124
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you