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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.