Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a page under the homepage via Project Automation

Martin Dowie February 21, 2025

I've been using the example to test this out...and a new page is indeed created. But it is not a child of the homepage - it sits outside that tree of pages as a brand new root page in the space.

How can I create a page under any particular page in a space?

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
February 21, 2025

Hello @Martin Dowie 

I'm not very familiar with the Confluence API. However I found this article:

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

In the comments there is mention of an "ancestors" attribute that can be used to set the parent page for the page you are creating. And that is part of the request body described in the API documentation.

https://developer.atlassian.com/server/confluence/rest/v1000/api-group-content-resource/#api-rest-api-content-post

Martin Dowie February 24, 2025

Brilliant, that 100% worked - thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.13
TAGS
AUG Leaders

Atlassian Community Events