如何从 Team Foundation Server 中删除工作项 [英] How to delete Work Item from Team Foundation Server

查看:22
本文介绍了如何从 Team Foundation Server 中删除工作项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有机会从 TFS 中删除工作项,或者我只能重命名它.

Is there a chance to delete Work Item from TFS, or all I can do is just to rename it.

更新:这个问题是针对 TFS 2008 的.正如 Rob Cannon 所建议的,新版本 (2010) 具有开箱即用的解决方案

推荐答案

查看此工具:http://devmatter.blogspot.com/2009/04/deleting-work-items-in-tfs-ui.html

Team Foundation Client 不包含从 TFS 中删除工作项的任何功能.

the Team Foundation Client does not include any functionality for deleting work items from TFS.

虽然有点不方便,但您可以通过安装 Team Foundation Server Power Tools(2008 年 10 月版或更高版本).在作为强力工具的一部分提供的许多功能中,有一个名为 destroywi 的命令可用于删除工作项.例如,要删除 ID 为 1234 的工作项,请使用以下命令:

Although it’s a tad inconvenient, you can delete work items from TFS by installing the Team Foundation Server Power Tools (October 2008 release or greater). Of the many features available as part of the power tools, there is a command called destroywi that can be used to delete work items. For example, to delete the work item ID 1234, use the command:

tfpt destroywi /server:tfs-dev /workitemid:1234

尽管这是一项相对简单的任务,但并不是每个人都对命令行界面感到满意,更不用说您必须提前查找工作项 ID.为了稍微简化这个过程,我创建了一个简单的 UI,它位于 Team Foundation Server Power Tools 之上,允许您轻松选择要从中查询的 Team Foundation Server 和项目.您可以运行现有查询以显示工作项列表,您可以从中选择一个或多个要删除的工作项.如果您愿意,也可以直接输入工作项 ID(以逗号分隔的列表形式)...

Although this is a relatively straightforward task to perform, not everyone is comfortable with the command line interface not to mention you have to look up the work item ID(s) ahead of time. To ease the process a little bit, I created a simple UI that sits on top of the Team Foundation Server Power Tools that allows you to easily select a Team Foundation Server and Project to query from. You can run an existing query to display a list of work items from which you can select one or more work items to be deleted. You can also enter the work item IDs directly (as a comma-separated list) if you prefer...

这篇关于如何从 Team Foundation Server 中删除工作项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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