如何删除VSTS中的共享步骤 [英] How do I delete shared steps in VSTS

查看:94
本文介绍了如何删除VSTS中的共享步骤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以编程方式删除共享的步骤(我正在尝试导出/导入,并且正在生成大量步骤,并且希望能够一次一次地删除它们,而不是手动删除).

I’m trying to programmatically delete shared steps (I am experimenting with export/import, and am generating a large amount, and want to be able to delete them – not manually, one at a time).

无法使用删除工作项API来删除共享的步骤,就像所有隐藏"类别的工作项类型一样.测试用例,测试计划和测试套件具有允许删除的特殊API,但我找不到共享步骤的相似API.

Shared steps, like all "hidden" category work item types, cannot be deleted with the delete work item API. Test cases, test plans, and test suites have special APIs to allow their deletion, but I cannot find a similar API for the shared steps.

任何人都知道API是什么,或者是否有一个API,或者是否会有吗?

Does any one know what the API is, or whether there is one, or whether there will be?

推荐答案

是的,共享步骤实际上是幕后的工作项类型.

Yes, a shared step is actually a work item type under the covers.

与测试计划/套件不同,没有相关的Rest API可以直接删除它们.希望通过Web门户手动删除.只能使用

Unlike test plan/suite, there is no related Rest API could directly delete them. Expect deleting manually through web portal. It can only be destroyed by using witadmin destroywi command which is the only available option right now.

还可以与VSTS一起使用,只需安装任何版本的VS,该命令位于(%programfiles(x86)%\ Microsoft Visual Studio 1x.0 \ Common7 \ IDE )

Also works with VSTS, you just have to install any edition of VS , the command located at (%programfiles(x86)%\Microsoft Visual Studio 1x.0\Common7\IDE)

要运行witadmin命令行工具,请打开命令提示符窗口 安装Visual Studio的位置. witadmin命令行工具 随任何版本的Visual Studio一起安装.

To run the witadmin command-line tool, open a Command Prompt window where Visual Studio is installed. The witadmin command-line tool installs with any version of Visual Studio.

您可以访问此工具 通过安装免费版本的Visual Studio社区.

You can access this tool by installing the free version of Visual Studio Community.

您需要知道要删除的共享步骤工作项的 ID .

You'll need to know the ID of the Shared Steps Work Item you want to get rid of.

witadmin destroywi /collection:https://xxx.visualstudio.com /id:123

这篇关于如何删除VSTS中的共享步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆