Access Bitbucket
CONFLUENCE Data Center / Server
Including Bitbucket Data Center
To include Bitbucket Data Center, configure an application link between Confluence and Bitbucket Server.
Including Bitbucket Cloud
The app also supports including Bitbucket cloud. You need to add a Bitbucket Cloud App Password which is used to access private Bitbucket Cloud apps.
Warning: This will allow all Confluence users to view private repository content the Bitbucket Cloud user has access to.
Log into Bitbucket Cloud with the User you want to use
Go to your profile (left lower corner)->Personal Settings-> App Passwords
Create an App Password
Use the following permissions:
Account Read
Projects Read
Repositories Read
Pull Requests Read
Create and copy App Password. You wont be able to access it later without regenerating it.
Go to your Confluence instance, Administration->General configuration->Include Bitbucket
Enter the Bitbucket Cloud username and app password there.
Save the configuration.
After that, you should be able to include Bitbucket cloud files.