microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
522 stars 519 forks source link

How to get full work item from a relation? #79

Closed nemec closed 6 years ago

nemec commented 6 years ago

Using this sample code as a base, how do I get the full contents of each of those related work items?

The only obvious solution to me is to chop the work item ID off the end of the URL, convert it to an integer, and then call workItemTrackingClient.GetWorkItemAsync(id), but I feel like there should be a solution that doesn't involve making assumptions on the format of the URL that comes back.

danhellem commented 6 years ago

Here you can see a sample