doc/user/import/bitbucket_cloud.md
{{< details >}}
{{< /details >}}
{{< history >}}
bitbucket_parallel_importer. Disabled by default.bitbucket_parallel_importer removed.{{< /history >}}
Import your projects from Bitbucket Cloud to GitLab.
The Bitbucket Cloud importer imports a subset of items from Bitbucket Cloud.
| Bitbucket Cloud item | Imported |
|---|---|
| Repository description | {{< yes >}} |
| Git repository data | {{< yes >}} |
| Issues, including comments | {{< yes >}} |
| Pull requests, including comments | {{< yes >}} |
| Milestones | {{< yes >}} |
| Wiki | {{< yes >}} |
| Labels | {{< yes >}} |
| Milestones | {{< yes >}} |
| LFS objects | {{< yes >}} |
| Pull request approvals | {{< no >}} |
| Approval rules | {{< no >}} |
When Bitbucket Cloud items are imported:
When importing issues, pull requests, and comments, the Bitbucket Cloud importer:
For pull requests, the importer:
opened, closed, or merged.For issues, the importer:
bug, enhancement, proposal or task.resolved, invalid, duplicate, wontfix, or closed, closes the issue on
GitLab.The Bitbucket Cloud importer creates any new namespaces (groups) if they don't exist. If the namespace is taken, the repository is imported under the namespace of the user who started the import process.
For user contributions to be mapped, each user must complete the following before the project import:
[!warning] Support for app passwords was deprecated in GitLab 18.9 and is planned for removal in 19.0. Use user API tokens instead.
If you want to use the import API to import a Bitbucket Cloud repository, you must create a Bitbucket Cloud app password.
To generate a Bitbucket Cloud app password:
In the Access Management section, select App passwords.
Select Create app password.
Enter password name.
Select at least the following permissions:
Account: Email, Read
Projects: Read
Repositories: Read
Pull Requests: Read
Issues: Read
Wiki: Read and Write
Select Create.
These sections contain possible solutions to issues you might encounter when importing from Bitbucket Cloud.
Be sure to sign in to the correct account. If you've accidentally started the import process with the wrong account, follow these steps:
For user mapping to work, the username in the Bitbucket account settings must match the public name in the Atlassian account settings.
If these names match but user mapping still fails, the user might have modified their Bitbucket username after connecting their Bitbucket account in the GitLab profile service sign-in.
To fix this issue, the user must verify that their Bitbucket external UID in the GitLab database matches their current Bitbucket public name, and reconnect if there's a mismatch:
identities attribute contains the Bitbucket account that exists in the GitLab database.
If the extern_uid doesn't match the current Bitbucket public name, the user should reconnect their Bitbucket account
in the GitLab profile service sign-in.extern_uid in
the GitLab database now matches their current Bitbucket public name.The user who imported the project must then delete the imported project and import again.