如何使用tfs api获取与变更集ID相关联的工作项? [英] How to get work items associated with a changeset id using tfs api?

查看:222
本文介绍了如何使用tfs api获取与变更集ID相关联的工作项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以编程方式获取与选定变更集相关联的工作项列表.到目前为止,我已经能够使用Artifacts的概念来获取与工作项ID相关的变更集,并能够通过以下方式获得与特定构建相关的变更集和/或工作项:

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()和InformationNodeConverters.GetAssociatedWorkItems().

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

我正在使用VSTS 2010 beta1.有人知道该解决方案吗?

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

推荐答案

尝试一下:

Changeset cs = versionControlServer.GetChangeset(changesetId);

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

这篇关于如何使用tfs api获取与变更集ID相关联的工作项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆