Hi community,
I'm trying to set up an Automation to achieve the following;
- I have an Epic in Jira with multiple child issues (stories) that are all in a specific sprint
- I want to create Confluence pages, with the Epic being the parent page and its title being the sprint name, sprint start date and sprint end date
- For each of the child issues, the automation should create a confluence page, with the title being the (child) issue's summary
- I would also like to set the labels of the created confluence pages based on field values of the jira issues. For example, if there is a fixversion "1.00", I want to automatically add a label to the confluence page named "release-1.00". The "release" part of the label is fixed, so if in a follow up sprint with new stories the fixversion is 1.01, the automation should create new pages with the label "release-1.01"
I managed to create the parent page (for the Epic) and the child pages (for each of the child issues/stories of the Epic) and I was also able to populate the confluence pages with content by using web requests. For example, I created a new variable in the automation and can use this variable to be included on the confluence pages of the child issues, so that they are correctly nested under the parent page. I followed the official documentation here and utilized the "custom data" section for the "web request body". In other words, the web request body to create the confluence pages sets aspects like the space where the confluence page should be created, the title, the parent etc.
However, I could not find any information on setting labels for confluence pages created via web requests from a Jira automation. Is there a way to set labels for confluence pages via Jira automation and the method of using web requests that I'm using?