TFS API - Updating a work item field

∥☆過路亽.° 提交于 2019-12-07 06:38:23

问题


Is it possible to update a field of a work item using the TFS API ?

Something along this line:

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

回答1:


You can set update your WorkItem properties as you show above, just be sure to save them once your done with it.

Something like:

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


来源:https://stackoverflow.com/questions/9639828/tfs-api-updating-a-work-item-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!