Change TFS Work Item Type

只愿长相守 提交于 2019-12-08 14:39:56

问题


Is it possible to change the type of a TFS work item? For example, I have a Bug I would like to change to a Change Request.


回答1:


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.




回答2:


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




回答3:


Possible at least in TFS 2012, don't now about 2010

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


来源:https://stackoverflow.com/questions/2586063/change-tfs-work-item-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!