Question

We're using the Scrum 1.0 template for TFS. We're trying to do a work item query and I've noticed the State Changed Date for all of our items is empty. If I do a search for Changed Date, that works fine, but doesn't produce the desired results...

Why would this be the case?

Was it helpful?

Solution

  1. Export the WIT (Task, Bug or Impediment) using the Process Editor or witadmin to a file.
  2. Add the following block within the element:

    <FIELD refname="Microsoft.VSTS.Common.StateChangeDate" name="State Change Date" type="DateTime">
       <WHENCHANGED field="System.State">
         <SERVERDEFAULT from="clock" />
       </WHENCHANGED>
       <WHENNOTCHANGED field="System.State">
        <READONLY />
       </WHENNOTCHANGED>
     <HELPTEXT>Date and time that the value of the State field changed. </HELPTEXT>
    </FIELD>
    
  3. Save the file, and import it back to TFS using the Process Editor or witadmin..

  4. Click the Refresh button on Team Explorer.
  5. From this point forward changing the state of a work item will be queryable.

    Adding "State Change Date" to Visual Studio Scrum Process Template

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top