You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi everyone,
I'd like to user confluence automations to schedule a page tree to be copied into a different space every night. I've got two problems:
1. If I use the schedule trigger how do I determine the current page?
2. Is it possible to include child pages? if yes - is there a limit to the number of children?
Thanks for your help, Anne
To use a scheduled trigger to copy a specific page, you'll need to use a CQL condition. Weirdly CQL doesn't let you specify a Page ID (which would be the most foolproof method), so you have to do something like:
space=HELP and title="YOUR PAGE TITLE"
And ugh, yeah, it looks like the Copy page action does *not* give you an option to copy children.
So... kind of a bummer.
If you really needed this functionality and can't wait for Atlassian to someday add it, you might need to purchase ScriptRunner, which has a built-in Copy Page Tree script.
What I don't see is how to get the "code" for that built-in script so that you can make it a scheduled Script Job.
Maybe somebody from Adaptavist could weigh in on that.
Hi Darryl,
thanks for your answer. As we don't have scriptrunner licensed in confluence we are currently looking into the "send a Web Request" action of automations and trying to copy the pages via rest api (https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---children-and-descendants/#api-wiki-rest-api-content-id-pagehierarchy-copy-post)
According to the Atlassian support. That should be feasible.
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.