Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is it possible to insert a plugin to a confluence page using the confluence api?

My team is working to automate adding in and configuring a confluence plugin which is already installed on the confluence server to a confluence page. Is it possible to do this through the confluence api? If not, how would we approach this issue?

1 answer

1 accepted

2 votes
Answer accepted
Mirek Community Leader Apr 27, 2022

Hi @coleman.jackson ,

By "plugin" you mean an addon (like from the marketplace) or maybe macro or something else? Not quite sure if I understand. Could you clarify a little bit?

Hi @Mirek. Yes, an addon from the marketplace, specifically, the 'Include Bitbucket for Confluence' addon. That can be found here.

We are trying to insert this addon programmatically to a confluence page from an automation script we are attempting to write using the Confluence API. Is this possible? We have attempted reading through the api on inserting addons programmatically, but it seems this is not a standard approach. Every document we have come across has informed us that we should add it manually through the user interface.

I guess it should be possible. I mean if add-on is adding some macros and you paste them on a page then you can check the page source (page storage format) and copy the part used by the macro. Then you might use this source to inject it into API request related to adding a page content.

Read more about storage format

Rest API examples:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,104 views 21 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you