简体   繁体   English

更改 TFS 工作项类型

[英]Change TFS Work Item Type

Is it possible to change the type of a TFS work item?是否可以更改 TFS 工作项的类型? For example, I have a Bug I would like to change to a Change Request.例如,我有一个 Bug,我想更改为更改请求。

As noted you cannot directly change the work item type however there is a nice shortcut that may save you a lot of time for these scenarios.如前所述,您不能直接更改工作项类型,但是有一个很好的快捷方式可以为这些场景节省大量时间。 It will automatically copy links to change sets, test cases etc.它将自动复制链接以更改集、测试用例等。

  1. Right-click on your workitem and select "Create Copy of Work Item"右键单击您的工作项并选择“创建工作项的副本”
  2. The following dialog window will pop up where you can then change the work item type for the new item:将弹出以下对话框窗口,您可以在其中更改新项目的工作项目类型

在此处输入图片说明

Result: A new work item is created with the new type and the old one automatically added as a link and a comment added to the history area stating the work item ID it was copied from..结果:使用新类型创建新工作项,旧工作项自动添加为链接,并在历史记录区域中添加注释,说明从中复制的工作项 ID。

Not easily.不容易。 You could try and hack the database, but that's really not a good idea.您可以尝试破解数据库,但这确实不是一个好主意。 Just like dancing barefoot in a room full of broken glass whilst juggling live grenades isn't a good idea.就像在满是碎玻璃的房间里赤脚跳舞,同时玩弄手榴弹并不是一个好主意。

I'd suggest you create a new work item for the change request, link it to the bug and then set the bug state to obsolete/closed.我建议您为变更请求创建一个新的工作项,将其链接到错误,然后将错误状态设置为过时/关闭。

Changing a work item's type is now possible by right-clicking the work item in the web view and choosing Change Type:现在可以通过在 Web 视图中右键单击工作项并选择更改类型来更改工作项的类型:

Here's the link referenced in the screenshot above.这是上面屏幕截图中引用的链接

Possible at least in TFS 2012, don't now about 2010至少在 TFS 2012 中可能,现在不要在 2010 年左右

witadmin renamewitd /collection:”http://tfs-server-name:8080/tfs/collection-name
/p:Project-Name /n:”Product Backlog Item” /new:Story

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM