是否可以在 TFS 中恢复状态设置为已删除的任务? [英] Is it possible to recover a task in TFS that's had the status set to Removed?

查看:28
本文介绍了是否可以在 TFS 中恢复状态设置为已删除的任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人不小心在 TFS 2010 中将任务的状态设置为已删除",有什么办法可以恢复吗?

If someone accidentally set the status of a task to "Removed" in TFS 2010, is there any way to recover it?

推荐答案

如果您刚刚将 Status/State 更改为 Removed,您应该能够创建新的查询和搜索已删除的工作项.

If you just changed the Status/State to Removed you should be able to create a new Query and search for Removed work items.

转到我的查询,右键单击 -> 新建查询,将最后一项调整为状态 = 已删除,然后单击运行

Go to My Queries, right click -> New Query, adjust the last item to State = Removed and click Run

您可以从查询结果中打开任务并将状态/状态更改为适当的状态/状态

From the query results you can open up the task and change the Status/State to the appropriate Status/State

这假设您的工作项类型定义允许状态返回到除已删除以外的其他状态

编辑

如果您想更改默认 Scrum 模板中 Task 的行为,您必须修改位于

If you want to alter the behavior for a Task in the default scrum template you must modify the Task.xml located under

C:\Program Files (x86)\Microsoft\Microsoft Visual Studio Scrum 1.0\Process Template\WorkItem Tracking\TypeDefinitions

打开文件并添加位于

<TRANSITION from="Removed" to="To Do">
  <REASONS>
    <DEFAULTREASON value="Added back into the backlog" />
  </REASONS>
</TRANSITION>

使用 TFS 保存文件并更新修改后的 Task 工作项类型定义电动工具.这将覆盖 Scrum 任务类型并引入从 RemovedTo Do

Save the file and update the modified Task work item type definition using TFS Power Tools. This will overwrite the Scrum Task type and introduce the newly transition from Removed to To Do

从那里您只需要运行查询即可找到您的已删除任务并更改状态.

From there you simply need to run a query to find your Removed task and change the State.

这篇关于是否可以在 TFS 中恢复状态设置为已删除的任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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