Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I connected to VSTS Server by using:

$teamProjectCollection = [Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory]::GetTeamProjectCollection("http://wonderful01:8080")

$ws = $teamProjectCollection.GetService([type]"Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore")


After that I ran $closebug, and got one of the items I need to modify:

Value                    : Fixed
OriginalValue            : Fixed
FieldDefinition          : Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinition
Id                       : 10001
Name                     : Substatus
ReferenceName            : Microsoft.SQL.Substatus
IsDirty                  : False
IsEditable               : True
IsComputed               : False
IsRequired               : True
AllowedValues            : {Verification Not Needed, Verified}
HasAllowedValuesList     : True
IsLimitedToAllowedValues : True
ProhibitedValues         : {}
HasPatternMatch          : False
Status                   : InvalidListValue
IsValid                  : False
WorkItem                 : Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem

So how can I change the vaule from "fixed" to "verified"?

share|improve this question
Anybody know something about this?... – pansal Sep 15 '11 at 1:51
up vote 2 down vote accepted

I am coming to answer my question. After a long time investigation I found that substatus could be invoked by:


To change value from "fixed" to "resolved", use:


Then update the change:


I am not quite understanding why it works, and I think there should be a better way to do it. Welcome comments.

share|improve this answer
Thanks for updating the question with your answer! – Wesley Sep 20 '11 at 2:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.