Trying to append release notes on Confluence page via Gitlab with python script.
There is a possible bug regarding to the confluence.append_page function:
The latest deploy has overwritten the previously one data on the page:
confluence.append_page(
page_id=page_id,
title=page_title,
append_body=macro_template,
minor_edit=False
)
I would like to find out some resources regarding to the append_page function possibilities to overwrite something on the actual Confluence page.
You got it right, Confluence doesn't require a separate REST API installation to achieve what you're trying to accomplish
While the Confluence REST API exists, it's not a separate installable component. It's the underlying API that the Confluence Python library interacts with
The Confluence Python API you are using provides the necessary functionalities to interact with Confluence.
This is a valid and efficient solution. You can continue using the from atlassian import Confluence import statement to interact with Confluence programmatically.
The library offers functionalities to create, update, and manage Confluence pages
Best Regards!!
Hi @Humashankar VJ , thank you again for support. It seemed that the problem wasn't the Confluence Python API but the current artifacts used in Gitlab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If it is in your GitLab pipeline, then lets look in to GitLab artifacts involved in the deployment process
whicih might be overwriting the previous release notes on the Confluence page unintentionally
Can you give a try with different artifact paths or versioning mechanisms within GitLab to avoid overwrites.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right – the function in the Confluence Python API is designed to append content to an existing page, not overwrite it.
You can try other possibilities like Confluence REST API to update a page with new content
Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards
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 these advices, but I found out that I don't have Confluence REST API in place, so we have to resolve this bug only via provided confluence module by Confluence Python API via importing the following module: from atlassian import Confluence
The other solution is to put in place Confluence REST API.
Can you confirm these? If I understood the above correctly, then you can close this ticket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.