Confluence Automations - scheduled page copy

Anne Warmer May 24, 2023

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 



1 answer

0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2023

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.

Anne Warmer May 30, 2023

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  (

According to the Atlassian support. That should be feasible.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events