How to delete Work Item from Team Foundation Server

前端 未结 6 1953
时光说笑
时光说笑 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条回答
  •  梦毁少年i
    2021-02-01 15:47

    No one added code or an example, so here is my re-iteration of this answer using Rob Cannon's answer as guidance above.

    This is batch file code for accomplishing this task. You will be prompted before you actually delete your Work Item.

    ECHO OFF
    
    SET "VSDir=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\"
    
    CD %VSDir%
    
    SET /p WorkItemID=Enter Work Item ID: 
    
    ECHO.
    
    witadmin destroywi /collection:{TFS Server}/{Collection Name} /id:%WorkItemID%
    
    ECHO.
    PAUSE
    

    Enjoy

提交回复
热议问题