Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Import repository with pull requests

Fedir Kompaniiets
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!
May 11, 2018

How to import repository to bitbucket with pull requests??

2 answers

1 accepted

2 votes
Answer accepted
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2018

Hi @FE

 

It is currently not possible to import or migrate repositories with pull requests from a different Bitbucket Server (self-hosted) installation.

 

We have on open feature request on this topic:

BSERV-4586

 

Although pull requests, permissions and settings in general cannot be imported, the Git repositories themselves can be moved to a different server by using one of the option on the following article:

Server 5.10 Importing code from an existing project

 

If you are using bitbucket.org (the option hosted by Atlassian), let us know and we can provide a detailed answer on that.

 

Cheers,

Caterina

Nikita Voloshin March 7, 2019

Hi Caterina,

If you are using bitbucket.org (the option hosted by Atlassian), let us know and we can provide a detailed answer on that.

I want to import my whole project from https://bitbucket.org to Bitbucket Server with pull requests and comments.

Could you please provide detailed instruction on how to do that.

Regards, 

Nikita 

Like # people like this
ejiro_uplevelteam_com
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 11, 2019

@Caterina Curti Just like @Nikita Voloshin mentioned above.

 

I want to import my whole project from https://bitbucket.org to Bitbucket Server with pull requests and comments.

Could you please provide detailed instruction on how to do that.

Best,

Ejiro

1 vote
Laura Hinojosa July 11, 2019

@Caterina Curti 

 

We also want to import our project including PRs.  BSERV-4586 shows as resolved. So is it possible now?

Please let me know

thanks

Laura

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 11, 2019

Hi @Laura Hinojosa

Please see this comment by Imran (the Bitbucket Server and Data Center product manager for this feature) on the feature request.

 

The feature is available for Data Center customers since the 5.14 version but, at this stage, it cannot be used by Server customers.

 

BSERV-11008 is the new feature request for adding this feature for Server customers. In case you are interested on this feature, feel free to add a comment there to explain why this is relevant for a Server customer.

 

More details on the difference between Server and Data Center for Bitbucket Server can be found on the Bitbucket: Bitbucket Server vs. Bitbucket Data Center page and here is a table with the feature comparison.

Cheers,

Caterina

Alexis Mosquera June 15, 2020

Is it possible to import merge requests from gitlab to bitbucket.org?.  If it's possible, how can I do it?.

Thanks in advance!

Shashank Mani
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!
August 10, 2020

@Caterina Curti  We are using licensed version of bitbucket and tried to move repo from github to bitbucket but we aren't able to see the pull requests, Can you pls help us if it's possible or not ?

Nikolay Kojuharov August 4, 2021

Is it possible to move do all of this (migrate pull requests, comments, PR status, etc.) from Bitbucket Server to Bitbucket Cloud?

Like Sayantan Ghosh likes this
Sayantan Ghosh September 16, 2021

Hi @Nikolay Kojuharov @Shashank Mani @Alexis Mosquera  @Caterina Curti 

It is possible to migrate all the Pull Requests with Repository user and group level permission schemes. Even it is possible to migrate multiple projects and it's repositories.

I have done it using automation script. You can trigger their Data Center rest API calls.

https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html

You need to develop python scripts to fetch the details from source environment and to update it in your target environment via POST API calls.

Maya Vijayakumar
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!
October 28, 2021

hey ,

I am looking for options to migrate bitbucket repos from server to cloud along with Pull request history and metadata information. BSERV-4586 status is closed . Can you provide me details on now to get this done . 

 

Thanks

Maya

Alexandre_Ovtchinnikov
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!
October 17, 2023

Hello @Sayantan Ghosh 

I wonder if you have managed to implement the script? What were the hints, pitfalls you can share? 

KR, Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events