Azure DevOps is a powerful tool for managing and tracking software development progress. Even more than that, it also does a bunch of other useful things like the Azure Boards feature that, in my opinion, are among the best. Consequently, focusing on the work item design, this blog post discusses how to read work item data from Azure DevOps with C#. This might be useful to you if you want to consume data from Azure DevOps and use it to integrate with other systems.
The code for reading Work Item data from Azure DevOps
The code sample below presents two methods. Both cases will use the Nuget package Microsoft.VisualStudio.Services.Client.
- The first method focuses on creating the VssConnection object using your organization URL and the Personal Access Token for authentication;
- After that, the second and main method is the one who lists all the Properties available and their respective values. Likewise, the idea is to instantiate the WorkItemTrackingHttpClient and use it to get one Work Item by ID.
In conclusion we can assume that C# is a good option for integrating and reading data from Azure DevOps. Moreover, work items may have different and useful data to be analyzed, exported or consumed. That’s why I hope you will be able to read work item data from Azure DevOps with C#. Maybe you will find useful this blog post that explains each Work Item role too.
References:
Microsoft Docs – Work Item Quickstart
Leave a Reply