With Microsoft.TeamFoundationServer.Client.16.153.0 against Azure Devops Server 2019, using WorkItemExpand with a flag expression won't return relations.
ex:
// assuming this workitem has relations (relations between Workitems and a link to a commit)
int id =1234;
// this call will NOT return relations (wi.Relations is still null after call)
workItemTrackingHttpClient.GetWorkItemAsync(id, expand: WorkItemExpand.Links | WorkItemExpand.Relations).Result;
// this call will return relations.
workItemTrackingHttpClient.GetWorkItemAsync(id, expand: WorkItemExpand.All).Result
Hi,
With Microsoft.TeamFoundationServer.Client.16.153.0 against Azure Devops Server 2019, using WorkItemExpand with a flag expression won't return relations.
ex:
see your original example: https://github.com/microsoft/azure-devops-dotnet-samples/blob/8f341f8e33adc8b1b4432b51ad2e10f0b7864739/ClientLibrary/Samples/WorkItemTracking/WorkItemsSample.cs#L225
Maybe there is an issue into the WorkItemExpand enumeration definition ?