TFS 2013 API - Retrieve all changes made for WI

一世执手 提交于 2019-12-06 15:09:10

If you mean you want to show all the history (what fields changed, when and by who) for certain work items types (user stories, Tasks, Bugs)

There is no API can just show 'all changes' tab info directly. And if you retrieve work items as below

   foreach (Revision revision in wi.Revisions)
            {
                Debug.Write(revision.WorkItem);
            }

The revision history can only be retrieved for work item fields available in the collection WorkItem.Fields,you will NOT see the history but end up reloading the current workitem object again and again.

More details, you can refer below link which has a pretty good example of how to do it in C#: Work Item History Visualizer using TFS API

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