Azure DevOps - getting project stats for all projects
If you have quite a lot of projects in your Azure DevOps organization and is looking for a way to filter the inactive projects out, that’s what we will discuss today. This is going to be based on the data the we see in the "Project stats" section on the landing page of an ADO project. This data gets fetched using the "Contribution/HierarchyQuery/project" REST Api, which for some reason doesn't seem to be documented. So we may have to keep an eye out for any changes. The apis lets you get project stats like: Work Items : created and updated Repos : Commits pushed with the number of authors, PRs created and completed the range can be specified, and accepts a maximum value of 30 days. If you use TFVC, that data is also returned - like the number of changesets and authors. I am not using it for the calculation here as we don't use TFVC. You can also get the metrics for builds and releases - j ust in case you are interested, the...