Setting Remaining Work to Zero when closing a work item in TFS


How can I make sure that the "Remaining Work" field is set to 0 when the work item is closed (for example when associating a work item during checking-in)?

Short Answer:

You can achieve this using the <COPY> rule on the transition to the "Closed" state.

Step-by-Step instructions:

  1. For the desired transition (in this example from "Active" to "Closed").

    Edit the Workflow Transition with Process Template Editor (part of TFS Power Tools)

  2. Add a field reference to "Microsoft.VSTS.Scheduling.RemainingWork"

    Choose the desired field 
  3. Add a new rule of type "COPY"

    You can use the copy rule to set values
  4. Choose From = "value" and enter value = "0"

    The copy rule sets a value to a field
  5. The resulting XML should look something like

     XML under the covers defines our new rule
  6. Verification: After transitioning a task work item from "Active" to the "Closed" state "Remaining Work" is set to zero.

    Work Item History shows the new rule in beeing applied on the state transition. 

Hotfix KB 971092 for Visual Studio 2008 SP1 install problems

Windows Update for VS repeats indefinitely Applies to:

Security Update for Microsoft Visual Studio 2008 Service Pack 1 (KB971092)


The update installs successfully and but will be offered again by Windows Update as a new update. This can be repeated indefinitely.


the standalone installer tells you that this update "does not apply, or is blocked by another condition on your system".

Workaround (found here):

  1. Download the stand-alone version of VS90SP1-KB971092-x86.exe.
  2. Start the installation VS90SP1-KB971092-x86.exe
  3. Wait for the error message to come up – do not close the window
  4. Copy the temp. folder where the patch has been unpacked to a new folder, for example onto your desktop.
  5. Close VS90SP1-KB971092-x86.exe that you started in step 2.
  6. Navigate to {Program Files}\Microsoft Visual Studio 9.0\Common7\Tools and find vsvars32.bat.
  7. Change the permissions on the file to allow everyone to edit it.
  8. Start VS90SP1-KB971092-x86.msp from within the saved folder and the process should complete.
  9. You may want to reset permissions that you gave in step 7.