Marking Tasks and Bugs as “Done” During a Check-in

In recent weeks, a few different people have asked me how to modify the Scrum template such that a Task or Bug is marked as Done during a check-in.   We left this out of the original state flow because we wanted the done state transition to be very intentional, but it’s a common practice and a very handy feature.

To change this behavior on an in-flight project you want to add the Microsoft.VSTS.Actions.Checkin action to the appropriate state transition in your work item definition.  With the Scrum template, this would be on the In Progress –> Done transition for the Task work item, and the Committed –> Done transition for the Bug work item.

Below is a snippet of the In Progress –> Done transition on the Task work item after applying the changes.

<TRANSITION from="In Progress" to="Done">
<ACTION value="Microsoft.VSTS.Actions.Checkin" />
<DEFAULTREASON value="Work finished" />

The easiest way to make these changes is to download and install the Team Foundation Server 2010 Power Tools which includes the Process Editor.  Once you’ve done that, open Team Explorer and follow the steps below:

  • Select Process Editor –> Work Item Types –> Open WIT from Server from the Tools menu.


  • Select the project you want to modify.
  • Select the work item type that you want to modify (Task or Bug)
  • After the work item type definition loads, switch to the Workflow tab and double click the transition between In Progress –> Done.
  • Switch to the Actions tab, click New, and add the value “Microsoft.VSTS.Actions.Checkin” and click OK.  The result will look like the screenshot below.


  • Save the new work item definition, and you’re all set.

The next time you make a check-in, you can choose to “Resolve” any Task that is in the In Progress state.  The Task will be automatically moved to the Done state and associated with the changeset.



Comments (1)

  1. Mike says:

    Link in article is broken