I have a parent page, and then for each of the tools/sections of the product I'm testing for an update I have a child page.
If there is a fail status, I would like that to display on the parent page, so a developer-only has to check the parent page to see where the test failed, so he/she can quickly find and fix the problem and the information is concise.
How can I have a parent page that updates when a child page gets a status "failed" at any point in the tables/information?
Hey there, @Mel Keilwert !
We can surely achieve this with native Confluence macros. We actually have two options on how to deal with this.
I would like to share the Page Properties Macro way first. The Page Properties and Page Properties Report macros are a duo of macros that work in tandem to provide information for the users. Here is how we can proceed with this method:
Page Properties Macro
- Create a new Parent page
- Publish it
- Create the children page of the newly created parent page
- Add a table with Two Rows
- In the first row, add the desired value column name
- In the second row, add the desired values (here is where you need to insert the Status)
- Publish the page
- Add a specific label to it (we will need this label later)
- Go to the parent page of the newly created page
- Edit it
- Insert the Page Properties Report macro
- In the macro settings, specify the label you created later
- Save the macro settings
- Publish the page
- Done
This will keep the status updated in the parent page without the need to edit it each time. The downside is that the Page Properties Report macro will display a single line of the table. Another advantage is that every page that contains the same label as the one you specified will be added here without the need of further tinkering.
Here is what it should look like:
Excerpt Include inside parent page in edit mode:
Excerpt Include inside parent page in view mode:
Excerpt macro inside child page in edit mode:
Excerpt macro inside child page in view mode:
The next method involves using another duet. I am talking about the Excerpt and Excerpt Include Macro. This method also guarantees that the parent page will be updated without the need for manual intervention. Here is how:
Excerpt Include Macro
- Create a new Parent page
- Publish it
- Create the children page of the newly created parent page
- Add the Excerpt Macro
- Include everything that you need to display in the parent page inside this macro
- Publish the page
- Go back to the parent page
- Edit it
- Insert the Excerpt Include macro
- Specify the page where you placed the Excerpt macro earlier
- Save the macro
- Publish the page
This method is a little different from the previous one. Here, everything that is inserted into the Excerpt macro will be shown within the parent page that contains the Excerpt Include Macro. This can be beneficial if you have multiple lines of statuses. One downside is that you need to manually insert the Excerpt in each new page and go back to your parent page to include a new Excerpt Include macro so that it displays the updates.
Here is what it should look like:
Page Properties Macro inside child page in edit mode:
Page Properties Macro inside child page in view mode:
Page Properties Report Macro inside parent page in edit mode:
Page Properties Report Macro inside parent page in view mode:
Here is our documentation on both macros, Mel:
Looking forward to your reply. Let us hear from you, Mel!
Thank you very much for this detailed reply, I was trying to mess around with parent/child pages so this will for sure help. I will run this through and let you know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, @Mel Keilwert ! Glad to know I was able to provide some help.
Let us hear about your findings!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.