How to Create Related Pages with Templates

I have created a new template in a Confluence space for a certain data type.  That works perfectly well.  Next however, I want to be able to create pages from this template that are linked back to it.  I can't talk about the specific use case, but I'll give something that has the same data relationships as an example.

Let's say that you wanted to create a Confluence space for a kid's soccer league.  On the main page you had a listing of teams (which is using the Page Properties Report macro to list all of the teams that have been created using that template in the space).  Then once you go into each team page, you want to be able to create players.  Ideally on each team page, you would want to have a list of each of the players (only for that team) and then be able to create a new player page from the team page with a single click.

The main problem that I am having is how to populate a variable value from the Create from Template Macro.  Ideally, I would have a variable $team_name on the team page that I could pass through as the value for the Page Properties ID field on the player page.

Has anyone been able to get something like this to work?

1 answer

I'm new to Confluence, so my answer may be complete nonsense smile but shouldn't you just create a page for each player, each one a child of the team page? Then you wouldn't need to worry about joining them using a variable.

Unfortunately that doesn't work when leveraging templates. It also doesn't allow for differentiated child types.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

355 views 20 10
Join discussion

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