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

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

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

Atlassian Community Events