Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

tfs

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

like image 494
chris Avatar asked Apr 11 '12 13:04

chris


1 Answers

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.

like image 56
Mark Coleman Avatar answered Sep 22 '22 16:09

Mark Coleman