Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,068
Community Members
 
Community Events
165
Community Groups

How to automatically create a page under specific section in confluence?

Himanshi I'm New Here Apr 13, 2022

Hi there, I am using the attached project automation to automatically create pages in confluence, which works!

However, I need to create the page under specific section/folder/parent page.

What can be done for that?

 Project_Automation.PNG

1 answer

1 accepted

0 votes
Answer accepted
Mirek Community Leader Apr 13, 2022

Hi @Himanshi 

Would this simply not work if you change the base request url and include the {page ID} of the parent page where you wan to create the content?

/wiki/rest/api/content/{pageId}

If not overall @Esther Strom might be able to help here since I remember she wrote a pretty detailed article about this functionality

https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738

There is also an official KB article about this topic

https://confluence.atlassian.com/jirakb/create-confluence-pages-from-jira-using-automation-1041826324.html

which might be useful for someone that is overall interested in how this works.

Himanshi I'm New Here Apr 13, 2022

Thanks, Mirek, this helped. I found out that Adding Ancestors array in my existing json, resolved this issue. 

Mirek Community Leader Apr 13, 2022

Yes, ancestors! :) That is great! Maybe you can share your final code (JSON) so that everyone that would face the same problem would benefit? :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

349 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you