[英]How to delete a VSTS/TFS work item
我正在嘗試刪除一些虛擬測試用例和用戶案例,並找到了官方文檔來做到這一點。 似乎我需要使用一個名為witadmin
的cli工具。
他們提到該工具的錯誤路徑 。 我安裝了Visual Studio 2017,並在以下位置找到了它:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer
然后,我嘗試運行此命令,該命令告訴您要從哪個集合中刪除哪些工作項。
.\\witadmin.exe destroywi /collection:https://<ORGANIZATION>.visualstudio.com/<PROJECT> /id:405,440,403
出現一個對話框供我登錄,我充滿了我的用戶並過了一會兒,並收到此錯誤:
TF31002: Unable to connect to this Team Foundation Server: https://ORG.visualstudio.com/PROJ.
Team Foundation Server Url: https://ORG.visualstudio.com/PROJ.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The remote server returned an error: (404) Not Found.
傳遞正確,服務器在線。 因此,它只能是TFS名稱。 還有什么應該是正確的,對嗎? 我使用了項目的相同URL。 我也嘗試添加/defaultcollection
但是后來我無法通過登錄對話框。
我看到另一個問題,提示“您需要具有TFS管理員權限”,而我沒有。
有任何想法嗎? 我應該放棄並將項目狀態更改為“已刪除”嗎?
無需為此使用WITADMIN。 如果您具有“刪除工作項”權限,則可以將工作項拖放到回收站中並從那里刪除它們。
使用WITADMIN,您不應在路徑中包含該項目。
請參考以下步驟永久刪除工作項:
通過witadmin工具刪除工作項:
witadmin destroywi /collection: https://ORG.visualstudio.com /id:405,440,403
有關更多信息,您可以參考: 刪除工作項
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.