Set a Newly Created Folder as the Parent for Pages in the Same Automation

zamir_avidov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2025

I have an automation triggered when an issue of a certain type is created.
As part of the automation, a new folder is created, and two pages are generated.

The issue is that I cannot set the newly created folder as the parent for the pages within the same automation.
The Parent field only allows selecting from existing folders I’ve previously owned or edited, and it doesn’t support Smart Values, JQL, or dynamic inputs to reference the folder created earlier in the automation.

Question:
Is there a way to dynamically set the newly created folder as the parent for pages in the same automation? If not, are there any recommended workarounds?

1 answer

1 vote
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 25, 2025

Hi @zamir_avidov - welcome to the community,

I see the problem. I personally would suggest to create the following (child) pages via rest-api --> "send webrequest" action.

after creating the first (parent) page you could gather the page´s information via smart value (createdPage) and then use this in the api call that will create the child pages. See the following link to the confluence rest api:

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-post

 

Hope this was helpful.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events