Ask a questionAsk a question
 

Answermove work items between tfs projects

  • Saturday, November 07, 2009 2:00 PMiProtocol Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I need to move a bulk of work items from one team project to another with history intact, thus I'm making an application to do it.
    I've written the code to retrieve work items from the workitemstore, and need to copy these to the new project. The workitemtype is identical in both projects.
    I found the workitem.Copy() method which appears to be what Im looking for ( http://msdn.microsoft.com/en-us/library/bb140419.aspx ), I'm however at loss how the new copy of the workitem is connected to the new project? Do I fetch the workitemtype from the new project and give that as the parameter to the copy method thereby creating the link, and then call Save() on it? Will this copy all the pertinent information?

    Thanks for the help.

    EDIT: Well, I did some testing and it seems to work fine.



Answers

All Replies