22

is there a (simple) way to move a single TeamProject from one collection to another (in one server) in TFS 2010? Including source code, work items, documents, project site...

John Saunders
  • 160,644
  • 26
  • 247
  • 397
A-Dastani
  • 1,030
  • 1
  • 9
  • 20
  • Please don't prefix your titles with "TFS:" and such. That's what the tags are for. – John Saunders Apr 11 '12 at 06:21
  • For TFS 2012 check here: http://stackoverflow.com/questions/16137317/how-to-copy-a-team-project-from-one-collection-to-another-with-tfs-integration-p – Bruno Bieri Nov 17 '14 at 09:05

6 Answers6

8

No not really simple, you can split a collection and creata a new collection with the team projects you move in it, but you cannot out-of-the-box merge a team project into an existing collection.

What you can do is to use the TFS integration platform http://visualstudiogallery.msdn.microsoft.com/eb77e739-c98c-4e36-9ead-fa115b27fefe or http://tfsintegration.codeplex.com to migrate your team project over to the new collection. This is however a DataMigration that doesnt keep or even move all data, but it will move Source Code & Workitems. Moving a team project site (if needed) , including documents can be done by using the STSADM Export and Import commands, please refer to http://technet.microsoft.com/en-us/library/cc288191%28v=office.12%29.aspx for more info about moving SharePoint sites

A-Dastani
  • 1,030
  • 1
  • 9
  • 20
5

No there isn't.

But it is a requested feature: http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2037613-make-it-possible-to-move-a-team-project-between-te

Richard
  • 106,783
  • 21
  • 203
  • 265
2

It is not easy, but it is doable: Split a Team Project Collection

Ewald Hofman
  • 12,688
  • 3
  • 39
  • 44
  • Split a Team Project Collection made two TeamProject collections in Team Foundation Server, but i want to move a single TeamProject from one collection to another. – A-Dastani Apr 12 '12 at 04:33
  • Ah. sorry, misread your question. That is not possible since a team project is not a logical artifact in the database. Your only option then is indeed the Integration Platform to migrate data. Just curious: why do you want to move your team project? – Ewald Hofman Apr 12 '12 at 15:23
  • After Upgrading Team Foundation Server 2008 to 2010, we created a new Collection named OldProject. Then, we created new collections named, MobileCollection, DesktopCollection, DataProcessingCollection, RndCollection, and WebCollecton, for each units of software. This leds to each programmer is involved in two or more different Collections. – A-Dastani Apr 14 '12 at 06:08
  • Switching between collections is undesirable for programmers and due to this reason we are gonging to remove OldProjects collection and transfer projects of OldProjects collection to others collections. – A-Dastani Apr 14 '12 at 06:08
  • So you want to merge multiple collections into one. – Ewald Hofman Apr 16 '12 at 13:33
  • NO,i want split OldPrrojects collection to multiple collections – A-Dastani Apr 17 '12 at 07:01
  • There is a MSDN article how to split a collection: http://msdn.microsoft.com/en-us/library/dd936158.aspx – Ewald Hofman Apr 17 '12 at 16:11
  • this web page representation splitting a collection to new multiple collections – A-Dastani Apr 18 '12 at 04:53
  • So you want to move team projects from OldProjects to other existing colletions? – Ewald Hofman Apr 19 '12 at 15:20
  • yes,I want to move team projects from OldProjects collection to other existing collection – A-Dastani Apr 21 '12 at 07:44
1

Yes there is a feature request, but I don't think it will be shipped in the box, so the other option to use TFS Integration Platform

Mohamed.Radwan -MVP
  • 2,724
  • 2
  • 16
  • 24
0

There is a way to move from one collection to another using git-tfs and git-tf tools, it is a kind of workaround, but works if this is really required to be done.

This is posted step-by-step here: https://fabiostawinski.wordpress.com/2017/03/22/tfvc-to-git-to-tfvc-is-it-possible/

Fabito
  • 1,165
  • 2
  • 13
  • 30
-1

In VS 2013 - map both collections to some folders, and then "Move" command will be available:

enter image description here

Gennady G
  • 996
  • 2
  • 11
  • 28