How to delete Work Item from Team Foundation Server

前端 未结 6 2138
时光说笑
时光说笑 2021-02-01 15:34

Is there a chance to delete Work Item from TFS, or all I can do is just to rename it.

Update: This question was for TFS 2008. New version (2010) have out of the

6条回答
  •  天命终不由人
    2021-02-01 15:57

    If you want to do this without using the tool suggested in the accepted answer, here is a quick summary of what to do. This is based on the corresponding MSDN article suggested in another answer.

    Open Visual Studio Command Prompt:

    Using the start menu:

    • Search for it.
    • Or navigate to All Programs -> Microsoft Visual Studio X -> Visual Studio Tools to find it.

    Invoke witadmin

    1. Determine the team project collection URL. An example is http://ServerName:Port/VirtualDirectoryName/CollectionName.

    2. Determine the work item id.

    3. Invoke the following command, substituting the two above values:

       witadmin destroywi /collection:CollectionURL /id:id
      

    See the MSDN article for more details. Note that you need permission for this to work.

提交回复
热议问题