如何将工作项从TFS迁移到Visual Studio Team Services [英] How to migrate work items from TFS to Visual Studio Team Services

查看:130
本文介绍了如何将工作项从TFS迁移到Visual Studio Team Services的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队当前使用本地TFS 2012服务器.我正在将所有内容迁移到Visual Studio Team Services(以前是Visual Studio Online).我从一个测试项目开始,能够轻松地迁移所有代码,但无法弄清楚如何对工作项执行相同的操作.

My team currently works with an on-premises TFS 2012 server. I am migrating everything to Visual Studio Team Services, formerly Visual Studio Online. I am starting with a test project and was able to easily get all the code migrated, but can't figure out how to do the same for the work items.

那里有很好的指南吗?

推荐答案

截至2018年3月29日的新选项:

New options as of March 29th 2018:

  • 从TFS到VSTS迁移-官方导入选项,它将1个项目集合导入1个VSTS帐户.它会自动导入备份中存储的所有内容.在撰写本文时,必须将TFS升级到TFS 2018,并且必须删除一些工作项模板自定义(VSTS上没有一些有据可查的功能).
  • VSTS同步迁移器-Marting Hinshelwood,TFS和VSTS迁移的王者,已经建立了自己的小工具,可以将工作项从一个服务器/帐户迁移到另一个服务器/帐户.它甚至可以完成从一个团队项目到另一个团队项目的迁移,并且在执行过程之间切换.
  • VSTS工作项迁移器-微软还开源了一个项目,他们在内部用于迁移工作项.它的功能不那么强大,但是它是由Microsoft制造的.
  • TFS to VSTS migration - The official import option which will import 1 project collection into 1 VSTS account. It automatically imports everything stored in the backup. At the point of writing this, the TFS must be upgraded to TFS 2018 and some work item template customizations must be removed (there are a few well documented features unavailable on VSTS).
  • VSTS Sync Migrator - Marting Hinshelwood, the uncrowned king of TFS and VSTS migrations, has built his own little tool that can migrate work items from one server/account to another. It can even do migrations from one Team Project to another and while doing it switch between process templates.
  • VSTS Work Item Migrator - Microsoft has also open sourced a project that they used internally to migrate work items. It's less powerful, but it was made by Microsoft.

上一个答案:

目前还没有一个很好的故事.您的选择是:

At the moment there isn't a really good story. Your options are:

  • 重新开始-最简单的方法:).
  • 重新开始并手动重新创建有价值的项目-这很痛苦,但是有些团队过去曾做过这些事情.将旧的TFS服务器保持为只读模式,并且每次在旧系统中使用工作项时,都需要在新系统中手动创建它,设置所有字段并上传附件.根据项目的数量,您将需要一些冲刺来迁移最重要的内容.
  • 等待一会儿-Microsoft当前正在使用完整保真度导入选项,该选项将允许您上传项目集合,并且它将作为新的VSTS帐户公开(无法将项目集合导入到现有帐户).
  • 使用Excel进行导入/导出-将适用于大多数工作项,您可以松开附件和父/子级以外的工作项链接.诀窍是从一个项目集合中提取出来,然后将除ID外的所有字段复制到绑定到目标项目集合的Excel工作表中.您将需要修复所有身份"字段(当用户与VSTS在内部具有完全相同的显示名称时,效果最佳),并且必须使用一次new状态导入一次,然后在刚导入的值上超过当前状态/原因,再次同步.测试用例,计划,套件和共享步骤不会与它们的关系完好地导入. 方法与该方法非常相似.
  • 使用 TFS集成工具-适用于大多数工作项类型,尽管它会丢失自定义看板状态和标签.测试用例,共享步骤及其关系将不会导入.此选项将允许您导入导入工作项和源代码,并保持它们之间的联系.
  • 使用第三方解决方案-当前 OpsHub 详细的已知问题列表,并且我上次尝试它,我遇到了很多问题,需要他们的支持才能解决.
  • Start over - easiest :).
  • Start over and manually recreate items of value - It's a pain, but it's some teams have done these things in the past. keep the old TFS server available in read-only mode and each time you use a work item in the old system, you manually create it in the new one, set all the fields and upload the attachments. Depending on the number of items it'll take you a few sprints to migrate the most important stuff over.
  • Wait a while longer - Microsoft is currently working on a full fidelity import option which will allow you to upload a Project Collection and it will be exposed as a new VSTS Account (it's not going to be possible to import a project collection into an existing account).
  • Use Excel for import/export - Will work for most work items, you loose attachments and work item links other than parent/child. The trick is to extract from one Project Collection then copy all fields, except the ID to an Excel sheet bound to the target project collection. You will need to fix all Identity fields (works best when users have the exact same display name on premise as in VSTS) and you'll have to import once with state new and then past the current state/reason over the just imported values and sync again. Test Cases, Plans, Suites and Shared Steps will not be imported with their relations in tact. The approach would be very similar to this one.
  • Use the TFS Integration Tools - Will work for most work item types, though it will loose custom kanban states and tags. Test cases, Shared steps and their relations will not be imported. This option will allow you to import import work items and source code with their relationships in tact.
  • Use a 3rd party solution - Out of the available options currently OpsHub offers the most complete solution. For test case and source control link migration you're looking at the commercial edition, which comes at a steep price. It still has a long list of known issues and last time I tried it, I ran into numerous issues which required their support to resolve them.

如果您当前的工作项目状态对您来说很宝贵,那么有专门的TFS顾问可以进行此类迁移,

There are specialized TFS consultants who live off these kinds of migrations if your current state of the work items is precious to you, then you could reach out to them.

另请参阅:

这篇关于如何将工作项从TFS迁移到Visual Studio Team Services的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆