2011年11月12日 星期六

刪除TFS WorkItem

在TFS中,使用者無法直接刪除WorkItem,如果你建立錯誤的項目時,或許你想刪除,可以使用下列方式刪除(Ref MSDN),或將此項目Assign其他工作內容也可以。

To list fields that are not being used by any work item type

  1. Open a Command Prompt window.
  2. Change to the directory that contains the work item types that you want to list, by typing the following command and then pressing Enter.
    cd ..Drive:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
  3. List the fields that are no longer being used by any work item types by typing the following command at the command prompt, and then pressing Enter.
    列出未使用到的WorkItem:
    witadmin listfields /collection:http://ServerName:Port/VirtualDirectoryName/CollectionName /unused
  4. 刪除指定的WorkItem名稱
  5. witadmin deletefield /collection:http://ServerName:Port/VirtualDirectoryName/CollectionName /n:FieldName

沒有留言: