Hi,
I have been using create-child for a while now and I am currently trying to expand my use to automatically create a 4 deep directory structure of pages.

I have been half succesful in that I can create the directory structure that I want but not without issues. The directory structure I want is:

Parent Page

The problem I have is child pages show up as children for their parent and all other higher order Grand Parents. I am thinking this might be a bug in the Create Child macro or it may just be how Confluence deals with this. Either way, I am hoping there is a workaround or patch which can be applied.

To try and explain the exact issue .....

What happens is when creating the child, grandchild and greatgrandchild pages, these pages are also created in the parent page which calls the create-child macro.

At the moment, how I create the directory structure is I create the Parent Page from Template A.
Template A calls the create-child page to create Child Level 1 page which references Template B.
Template B calls the create-child page to create GrandChild Level 2 page which references Template C.
Template C calls the create-child page to create GreatGrandChild Level 3 page.

This results in the following........

The Parent Page has the following Children:
Child Level 1
GrandChild Level 2
GreatGrandChild Level 3

Child Level 1 page has the following chidlren:
GrandChild Level 2
GreatGrandChild Level 3

GrandChild Level 2 page has the following chidlren:
GreatGrandChild Level 3

GreatGrandChild Level 3 page does not have any child pages.

In effect what has happened is the Parent Page has executed the create-child macros which result from calling Template B.

Similarly, Child Level 1 has executed the create-child macros which result from calling Template C.

Hopefully this paints a clear picture of what is going on.

Has anyone else seen this issue or been able to reproduce it? Any help in overcoming this issue would be greatly appreciated.

Mick