I have a trouble like this guy: stackoverflow link
I can get only WorkItemReference with Wiql help.
var query = new Wiql
{
Query = string.Format("SELECT [System.Id], [System.WorkItemType], [System.Title], [System.AssignedTo], [System.State]" +
" FROM WorkItems" +
$" WHERE [System.Id] IN ({ids})" +
" ORDER BY [System.Id]")
};
WorkItemQueryResult queryResult = await witHttpClient.QueryByWiqlAsync(query);
if (queryResult.WorkItems.Any())
{
foreach (WorkItemReference child in queryResult.WorkItems)
{
//do something
}
}
I am forced each time to ask the TFS by id for get WorkItem and this is very long time