Is it possible to recover a task in TFS that's had the status set to Removed?

女生的网名这么多〃 提交于 2019-12-05 08:45:44

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

this assumes that your work item type definition allows for the state to go back to something other than removed

Edit

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

Open the file and add in an additional <TRANSITION/> element located under <TRANSITIONS/>

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

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.

You can also duplicate the work item to create a complete copy of this item in the To Do state. This is a bit of a work around, but is simpler and quicker to do. You can do this by:

  • Open the work item.
  • Click Tools on the menu.
  • Choose "Create Copy of Work Item"
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!