Migrate one single project from On-premise TFS to VSTS - tfs

how to migrate a single project alone (where project collection contains 30+ projects) from TFS to VSTS with all history, build-definitions, changesets

Microsoft has documentation on this exact scenario which can be found here: Migrate to Visual Studio Team Services : Move from Team Foundation Server (TFS) to Visual Studio Team Services (VSTS) and bring your data along.
This link also contains the download link for the migration tooling which you will want to use
Currently the following versions of TFS are supported for import:
TFS 2017 Update 3
TFS 2018
TFS 2018 Update 1

As described in About VSTS and TFS, Scope and scale data, the
long term direction for VSTS is to support grouping of accounts within
organizations. This would lead to:
VSTS accounts that serve as the equivalent of TFS project collections and VSTS organizations that serve as the equivalent of
TFS deployments.
This is why the TFS Database Import Service only supports importing single TFS collections as single VSTS accounts.
If you need to migrate individual team projects you will need to use
one of the other options—manual copy or public API based
migrations.
Source Link
It's very clear why you could not use TFS Database Import Service to migrate at team project-level directly.
You can also have a try for VSTS Sync Migration Tools,it allows you to bulk edit and migrate data between Team Projects on both Microsoft Team Foundation Server (TFS) and Visual Studio Team Services (VSTS). Note this without history. How to please refer: TFS 2017 Migration To VSTS with VSTS Sync Migrator
If you insist on keeping all history, the only way is using TFS Database Import Service, you may take the workaround as Daniel suggested.

Related

Workitems migration from TFS 2013 to Visual Studio Team Services

What are the best practices to migrate workitems say PBIs/Features manually from TFS to VSTS? And how to ensure we don't lose any linking to changesets or other linked child workitems?
Have referred the below link and the migration tool mentioned is deprecated and would like to know any other options which will help to migrate the data.
How to migrate work items from TFS to VS Team Services (VS Online)
The recommend way for now is using Migrate to Visual Studio Team Service, a way import your TFS Database into Visual Studio Team Services which definitely along with data.
However, currently only the following versions of TFS are supported for import with this tool:
TFS 2017 Update 3
TFS 2018
You may have to upgrade your TFS server to use. Alternative, the Microsoft official option is using public API-based tools.
Personally, even though Team Foundation Server Integration Tools has been deprecated. You could still use this solution in your case.
Besides, if you have no work item customization, then OpsHub is an
option. VSTS Sync Migration Tools is another way. But none offer a full fidelity migrations. Each tool has its own limitations.

Migrate visual studio team services to tfs

I'd like to know if it's possible to migrate from a Visual Studio Team Services to a local Team Foundation Server. I've seen many questions about the reveser process but not this.
I know I can download source code from VSTS and upload it manually to TFS, but I'd like to keep as many work items and project structure as possible.
You can try with TFS Integration Platform, it may have some errors but can work. Refer to this link for details: Migrate VSO to on premises TFS.

Team Foundation Server 2013 Integration Tools?

I need to bring backlog tasks from a proprietary system to TFS 2013.
I came across an extension called "Team Foundation Server Integration Tools" and "Team Foundation Server SDK" but they support up to TFS 2012.
Is there any product I could use to create backlog tasks in TFS through REST or other means?
The 2012 integration tools work fine against TFS 2013, you only need to install the TFS 2012 Client Object Model. The 2012/v11 adapter works against TFS 2012-2015 and Visual Studio Online.
There are a few features which are unsupported:
Migration of Test results
Migration of Work item Tags
Kanban colum states
In addition to the items already listed on the Toolkit's page.
Alternative products for work item migrations are:
Tasktop Sync
OpsHub Integration Manager
Should you want to manually code up the migration then the TFS 2013 Client Object Model will have all the functionality you need. You're looking for the WorkitemStore class as your main starting point to create and modify work items.
An alternative approach you may want to investigate is to do an Excel import.

Migrate specific project from TFS 2012 to 2013

We have a collection in TFS 2012 which contains more than one project.
We are considering to migrate to TFS 2013.
The TFS servers are already up and running.
Is it possible to migrate the data of a specific project in the collection from one TFS server (2012) to the other (2013) or we must migrate the whole collection?
The best way to do it would be to split up the team project in team project collection and then upgrading only the new team project collection. See below for splitting up team project from project collection
http://msdn.microsoft.com/en-us/library/dd936158.aspx
Also, the Tfs To Tfs migration guide will be useful.
http://tfstotfsmigration.codeplex.com/releases/view/37382

TFS Checkin history migration

Please let me know is it possible to migrate all the checkin histories with comments while migrating from TFS 2010 to TFS Cloud?
We migrated out TFS 2010 server to Team Foundation Service using the TFS Integration Platform. This will allow you to migrate your history to Team Foundation Service one-time or you can configure a bidirectional sync, although the latter is admittedly a much more complicated setup.

Resources