Include branches list
You can include information on branches from a Bitbucket repository by adding lists of branches in your Confluence page. For each branch you will get the branch name.
Add the macro
You can either:
type directly
{ Bitbucket branches
andENTER
to add and edit the macro, orclick in the editor toolbar on Insert > Other Macros and select the Bitbucket branches macro (located in the category “External Content” of the macro library).
![](../__attachments/3410755762/Include%20Bitbucket%20DC%20-%20add%20branches%20macro.png?inst-v=3eda12ed-4896-4d17-987f-63c1d75539b1)
Select the macro
Macro settings
You will then be prompted to specify the following:
| Dropdown of connections registered in the macro configuration |
---|---|
| Name of the project within the connection containing the targeted repository |
| Name of the repository containing the requested branches |
| Choose number of branches to be displayed (defaults to 100) |
![](../__attachments/3410755762/Include%20Bitbucket%20DC%20-%20edit%20branches%20macro.png?inst-v=3eda12ed-4896-4d17-987f-63c1d75539b1)
Edit the macro settings with your repository information