Move bugs with history and attachments to a new project

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 23:35:05

问题


We have 2 projects in TFS 2015 that we want to merge, both are in the same project collection.

I would like to export the bugs from project B with history and attachments and import them into Project A.

I would also like to export the Test plans with Outcomes from Project B into Project A. I'm thinking the Bugs may be easier than Test Plans and results.

Any thoughts?


回答1:


In TFS 2015, to import work item without history, you can create query and export and import via Excel. See Migrating TFS Work Items from one project to another using Excel.

To migrate Work Item Comments, Links and Attachments you can reference this article.

If you want to export and import work item with history you may have to use TFS API.

Follow below steps:

  • Get the Work Item Details Programmatically using TFS API
  • Get the Work Item Revision ‘History’ Programmatically using TFS API

Reference below articles on using the TFS API:

  • TFS SDK: Work Item History Visualizer using TFS API
  • TFS API : TFS Work Item All Changes History

Another workaround is upgrading to TFS 2017 or later version, then you can Copy or clone a work item from one project to another with the history,links and attachments etc.



来源:https://stackoverflow.com/questions/51044144/move-bugs-with-history-and-attachments-to-a-new-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!