How to get work items associated with a changeset id using tfs api?

谁说我不能喝 提交于 2020-01-02 19:11:07

问题


Hi I need to get a list of work items that are associated with selected changesets programmatically. So far I have been able to get the changesets associated with a work item ID using the concept of Artifacts, as well as got the changesets and/or workitems associated with a particular build using :

InformationNodeConverters.GetAssociatedChangesets() and InformationNodeConverters.GetAssociatedWorkItems() respectively.

I am using VSTS 2010 beta 1. Anyone know the solution?


回答1:


Try this:

Changeset cs = versionControlServer.GetChangeset(changesetId);

foreach (WorkItem wi in cs.WorkItems)
{
    Console.WriteLine(wi.ID);
}


来源:https://stackoverflow.com/questions/1623355/how-to-get-work-items-associated-with-a-changeset-id-using-tfs-api

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