Action: create Confluence Page with Jira Report
Asked by Stefan Prelle:

I want to create a release notes page in Confluence with static list of all Jira issues of a given release, the moment the version is released.

I am aware that there is an automation action to create a Confluence Page - but it somehow is insufficient. It allows selection a space, a parent page and a template - but the template selector only shows custom made templates.

Ideally I want to be able to select an output like the dynamic Jira reports in a static way for external/anonymous users.

Is that possible somehow?


Answers:
author: Anand Inamdar_Amoeboids
body: [@Stefan Prelle](/t5/user/viewprofilepage/user-id/102064) based on above conversation, it is definitely not a cakewalk to achieve what you are trying to. May I suggest you look at the marketplace apps that might potentially solve this challenge for you?

These are some of the apps that should help - <https://marketplace.atlassian.com/search?query=release%20notes>

PS - I am the product owner of [Automated release notes](https://marketplace.atlassian.com/apps/1215431/automated-release-notes-for-jira?hosting=cloud&tab=overview) \& [Automated release notes (Free)](https://marketplace.atlassian.com/apps/1223567/automated-release-notes-for-jira-free?hosting=cloud&tab=overview) apps. ARN apps allow for a lot many use cases when it comes to the Confluence integration, you may want to give them a try.

Best,  
Anand


author: Sam Harding
body: Hi [@Stefan Prelle](/t5/user/viewprofilepage/user-id/102064)

You could try to use the web request action to manually call the create content api, and populate it with the information you want

See <https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738>

Hope that might help you

Cheers  
Sam

comments: author: Stefan Prelle
body: Hi [@Sam Harding](/t5/user/viewprofilepage/user-id/3964520)

Thanks for the hint.

When I understand this correctly, I need to have the page content to use this this way. The missing piece would then be to create the content (release notes for the version) on the fly and feed it to this web request action - or find a way to create a confluence page with a stock-template.

Do you have any idea how to achieve this?


author: Sam Harding
body: Ah yes, using a template in this case would be very difficult.

I don't really think there is a viable approach there without having to do some very long and complicated text manipulation (ie, hitting the confluence api to fetch a template, then use a series of regex replacements to populate it).

Perhaps a better approach here would be to create a page from a template, and then update the page using the [update api](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/#update-a-page) which contains some 'storage' and formatting concepts to allow easier manipulation of the page contents

Unfortunately, I don't think there is an easier or comprehensive solution to this problem at this time.

Cheers  
Sam


author: Sam Harding
body: Some similar discussions can be found on this thread, maybe this will provide some help <https://community.atlassian.com/t5/Confluence-questions/How-can-i-create-a-new-page-from-a-users-template-using-rest-api/qaq-p/1059884>


Tags: confluence

jira-cloud