开发者

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

开发者 https://www.devze.com 2022-12-09 16:05 出处:网络
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开发者

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开发者_JAVA百科 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?


Try this:

Changeset cs = versionControlServer.GetChangeset(changesetId);

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

精彩评论

暂无评论...
验证码 换一张
取 消