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

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

问题描述

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

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

有谁知道API是什么,或者有没有,或者有没有?

解决方案

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

与测试计划/套件不同,没有相关的 Rest API 可以直接删除它们.期望通过 Web 门户手动删除.它只能通过使用 witadmin destroywi 命令,这是目前唯一可用的选项.

也适用于 VSTS,您只需要安装任何版本的 VS ,命令位于 (%programfiles(x86)%Microsoft Visual Studio 1x.0Common7IDE) <块引用>

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

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

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

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

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).

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.

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.

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.

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

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.

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

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天全站免登陆