以编程方式[永久]删除 TFS 工作项
虽然我知道有一个命令行工具可以永久删除 TFS 工作项。 (例如如何从 Team Foundation 中删除工作项服务器)
是否有人能够使用 TFS 2010 API DLL 以编程方式实现相同的操作?
Whilst I'm aware that there is a command line tool to permenantly delete a TFS work item. (e.g. How to delete Work Item from Team Foundation Server)
Has anyone been able to achieve the same action programatically using the TFS 2010 API DLLs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Shai Raiten 已就此发表博客 此处,他在此处使用
DestroyWorkItems(ids)
。建议您在实施时格外小心,因为这可能会严重扰乱您的安装。有人可能会说构建这样一个工具偏离了最佳实践。
Shai Raiten has blogged about this here, where he makes use of
DestroyWorkItems(ids)
.It is advisable that you proceed with extra caution in your implementation, since this can severely mess your installation. One could argue that constructing such a tool deviates from best practices.
您还可以 使用PowerShell批量删除工作项:
You can also use PowerShell to bulk delete work items: