When an Issue is create in Jira, I want to create a NewPage in a Confluence space, plus a list of sub-pages underneath the newly created page. The result should look like this:
Space
-NewPage
-- Page1 - x
-- Page2 -x
-NewPage2
--Page1-y
--Page2-y
the name of NewPage is based on the issue created in Jira. The Subpages will have a name that consists of a fixed part (e.g. Page1) + some individual part (e.g. -x)
The idea is, that with each new Jira Issue, I want to setup a documentation structure in Confluence, that will be the same for each new Issue.
How can I do that? I tried it in Jira automation - but don't really know on how to use the
{{createdPage}} variable, to reference the first page as parent for all the sub-pages
Any idea on how I can achieve this?
Thanks in advance
Bernd
The way we solved this was to create a smart value named parentPageId and set it to {{createdPage.Id}} from the NewPage.
The person who created the automation just has the child pages created under the same parent that NewPage was created under then used a web request action to move the child page under NewPage by calling https://24hf.atlassian.net/wiki/rest/api/content/{{createdPage.Id}}/move/append/{{parentPageId}}
We had to use the web request as a workaround due to the fact that the Parent Page field of the action will not accept a smart value.
Hello @Bernd Anderer
You can test this automation rule, where a page in first action is being created based on the summary of the issue, the second action is creating a sub-page and in the "Parent page" field, the page that was made from the first automation is being selected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thank you for your feedback.
I am not able to add anything meaningful in "Parent Page".
What did you add there? I can not add any variable... I can only select existing pages... am I doing something wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks..This work. @Nikola Perisic
Is there way to create a nested page (instead of sub page)under the parent page?
e.g. Parent Page issue.Summary
Nested Page --Issue.summary -Risk Register
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.