Share via


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, see witexport or witimport.

Required Permissions

To perform this procedure you must be a member of the Team Foundation Valid Users group. For more information, see Team Foundation Server Permissions.

To use Team Foundation commands at the command prompt

  • Click Start, click All Programs, point to Microsoft Visual Studio 2008, point to Visual Studio Tools, and then click Visual Studio 2008 Command Prompt.

    Alternatively, you can run vsvars32 in the Visual Studio installation path; usually DriveLetter:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools.

    Note

    You must have Visual Studio installed to use the Visual Studio 2008 Command Prompt.

To export a work item type

  1. Open a Visual Studio command prompt.

  2. 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"

    Note

    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 https://go.microsoft.com/fwlink/?LinkId=92325 and https://go.microsoft.com/fwlink/?LinkId=92323. To avoid this redirection, you can export the file to a location where you have access rights.

    Note

    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.

See Also

Tasks

How to: Import a Work Item Type to an Existing Project

Reference

witexport

witimport