Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Include Page Macro

Sing Chen
Contributor
July 19, 2023

Hi,

Hoping to get some insight or guidance regarding dynamically including a page or page content into another page.

We have a landing page for project portfolio, which is used by senior leaders to view a curated set of highlights/lowlights/risks/decisions across the portfolio (approx 80 projects).

A template is used to create this"weekly summary":

2023-07-19 11 28 18.png

The landing page currently uses an 'include page' macro to display the most recent "weekly summary":

2023-07-19 11 28 18.png

What I'd love to know is, is there a macro or some other creative way I can include the most up-to-date "weekly summary" with each passing week without having to update the "page to include" reference in the "include page" macro, every time a new summary is created?

It's an additional step which increases friction in the process:

Create new weekly summary -> Go to landing page --> Edit the include page macro.

I'm thinking about something like a macro to include the "new" page based on labels rather than name would be great.

Thanks,

Sing

1 answer

0 votes
Barbara Szczesniak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2023

@Sing Chen This may not be the most elegant solution, but would it make sense to:

  • Make a "Latest PMO Summary" page that always has the most recent summary. 
  • Before updating this page for the new week, you could copy the page to a page named "<last week's date>: PMO Summary"

This way, your Include Page macro can statically use the "Latest PMO Summary" page.

Sing Chen
Contributor
August 7, 2023

Thanks for the suggestion @Barbara Szczesniak

It's not exactly what I'm looking for. The non-negotiable for the 'creators' of the summaries is using the 'create from template' macro. Given this, we'll always have a new page for each week. The simplest solution I've found is to point the Include Page  at a new page each week - which is one change but it's a few clicks (edit the page, edit the macro, update the page in the macro, publish the page).

If there were a solution that supported labels, that would be ideal. My thinking is you could have a 'current' or 'latest' label built into the template. This way, all you would need to do is remove the 'latest' from the previous week's summary.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events