insert bitbucket content directly into confluence document

Rocke Robertson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2020

I can't seem to find a macro or a way to point to and include the content of a specific file from a bitbucket repo/branch.   Whenever the branch is updated, the content in the confluence documnent is updated automatically.

 

Essentialy this would be the same as the include excerpt macro, but for git.

 

Hope this mumbling makes sense.

3 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 4, 2020

Hi @Rocke Robertson,

Welcome to Atlassian Community.

At the moment the integration between Bitbucket and Confluence is sort of non existing. There are a couple of apps that allows you to display content in Confluence that is stored in a Bitbucket repository. Maybe the iFrame macro can be used and just link it to the file in Bitbucket. 

Rocke Robertson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2020

dam.  ok will begin some kind of a lame  hack.

And stay safe down there!

 

Tks

Like Mikael Sandberg likes this
1 vote
Sue Rocha_Mibex Software_ March 29, 2023

Thanks @Rocke Robertson . 

Hi @boris

You may find Include Bitbucket for Confluence useful for your use case where you want to embed a Bitbucket file into Confluence and it is kept in sync to ensure you always have the latest version. 

You can simply copy the URL of the Bitbucket file and paste it into the Confluence page.

In the following example we use this Bitbucket URL of a .js file: https://bitbucket.org/atlassian/atlassian-connect-express/src/master/lib/index.js

Then paste the URL in the Confluence page as shown in the video and the macro will automatically be applied to embed the file.

Include Bitbucket - paste file url.gif

You can include private and public files and we have a Data Center and Cloud edition. 

I hope this is helpful.

Best regards,
Sue from Mibex Software

Naresh Kumar M M
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2023

Thanks a lot

1 vote
boris
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 30, 2020

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events