Вот как вы можете запросить подзадачу
public void GetSubWorkItems()
{
var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://TFS:8080/TFS/DefaultCollection"));
var workItemStore = tfs.GetService<WorkItemStore>();
var wiqlQuery = String.Format(@"Select [State], [Title] From WorkItemLinks Where ([Source].[System.WorkItemType] = 'Task') Order By [State] Asc, [Changed Date] Desc"); ;
var query = new Query(workItemStore, wiqlQuery);
var workItems = query.RunLinkQuery();
foreach (WorkItemLinkInfo workItemlink in workItems)
{
Console.WriteLine(workItemlink.SourceId);
}
}
Спасибо
M.Radwan