Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

The child page complication

MPal Pal May 22, 2012

Hi folks,

Let's say I have a space A. It has x and y pages. Both x and y have their own child pages.

I want to get all the child pages of page x and copy only those child pages to a different space B. So space B shouldn't have page x but it should have page x's child pages.

I want a team member to write a program to automatate this. Is this programatically possible please?

3 answers

1 accepted

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
May 22, 2012

Yes, but only if you use the descendents parameter, otherwise it is just the direct children.

0 votes
MPal Pal May 28, 2012

Thanks Bob. You are a great help :)

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
May 22, 2012

Confluence CLI will do this using copyPageChildren action.

MPal Pal May 22, 2012

Thank you Bob.

Just one more thing pls, if the child page has its own child pages, will the copyPageChildren() method copy those as well?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events