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:
{{< details >}}
{{< /details >}}
This feature was deprecated in GitLab 18.9 and removed in GitLab 19.0. Use Bitbucket Cloud API token instead.
<!--- end_remove -->To use the import API to import a Bitbucket Cloud repository, you must create a Bitbucket Cloud API token.
To generate a Bitbucket Cloud API token:
Go to https://id.atlassian.com/manage-profile/security/api-tokens.
Select Create API token with scopes.
Enter a token name and expiration date, then select Next.
Select Bitbucket and then Next.
Select at least the following scopes:
read:repository:bitbucketread:pullrequest:bitbucketread:issue:bitbucketread:wiki:bitbucketSelect Create token and copy the token.
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.