问题
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