Automate Confluence page update on Bitbucket push (version + text)

Hi everyone,

I’m working on a setup where I want to automatically update a Confluence page whenever I push code to Bitbucket.

My goal:

  • When I push code to a Bitbucket repository

  • A pipeline (or webhook) should trigger

  • It should automatically:

    • Update a specific Confluence page

    • Add a new entry (e.g., deployment/version info)

    • Example: “Version 1.0.3 deployed on [date]”

Questions:

  1. What is the best approach to achieve this?

    • Bitbucket Pipelines + Confluence REST API?

    • Webhooks + external service?

  2. Is there any built-in Atlassian integration that supports this directly?

  3. Are there best practices to safely append content without overwriting the existing Confluence page?

  4. Has anyone implemented something similar? Any example or guidance would be really helpful.

Thanks in advance!