How to: Export a Work Item Type from an Existing Project
To customize work item types on an existing project, you can use the command-line tool witexport to export the work item type to an XML file. Then you can customize the work item type by editing the XML file and incorporate your changes back into your project using witimport. For more information about the command-line tools, seeor .
To perform this procedure you must be a member of the Team Foundation Valid Users group. For more information, see.
To use Team Foundation commands at the command prompt
Click Start, click All Programs, point to Microsoft Visual Studio 2005, point to Visual Studio Tools, and then click Visual Studio 2005 Command Prompt.
Alternatively, you can run vsvars32 in the Visual Studio installation path; usually DriveLetter:\Program Files\Microsoft Visual Studio 8\Common7\Tools.
You must have Microsoft Visual Studio 2005 installed to use the Visual Studio 2005 Command Prompt.
To export a work item type
Open a Visual Studio command prompt.
At the command prompt, type the following, and then press ENTER:
witexport /f " File Path " /t " Team Foundation Server name " /p " Team Project name " /n " Work Item Type name "
If you are running Windows Vista, you might not have access rights to certain folders. If you try to export the work item type to a location where you do not have access rights, the registry virtualization technology automatically redirects the exported file and saves it to the virtual store. For more information, see http://go.microsoft.com/fwlink/?LinkId=92325 and http://go.microsoft.com/fwlink/?LinkId=92323. To avoid this redirection, you can export the file to a location where you have access rights.
To see a list of available work item types on your Team Foundation Server, select the Team menu and click Add Work Item.
This exports the work item type from the Team Foundation Server to an XML file in the location that you specified. The following is displayed when the export operation finishes:
Work item type export complete.