TFS API - Updating Work Item Field

Can I update a work item field using the TFS API?

Something along this line:

WorkItemStore.GetWorkItem(Convert.ToInt32(current.WorkItemId)).State = rcbState.SelectedValue;



source to share

1 answer

You can set to update your properties WorkItem

as shown above, just remember to save them after doing with it.

Something like:

WorkItem item = WorkItemStore.GetWorkItem(Convert.ToInt32(current.WorkItemId));
item.State = rcbState.SelectedValue;




All Articles