How to get repository totals through the REST API
I am looking to get the following through the API interface:
Total: Work Items Build Results Change Sets Build Definitions Unfortunately, the following pull up paged reports without listing the total results: https://SERVER:PORT/jazz/rpt/repository/workitem?fields=workitem/workItem/* https://SERVER:PORT/jazz/rpt/repository/build?fields=build/buildResult/* https://SERVER:PORT/jazz/rpt/repository/scm?fields=scm/changeSet/* https://SERVER:PORT/jazz/rpt/repository/build?fields=build/buildDefinition/* When responding, please note that these are based on the whole repository and are not linked to a specific query or project. I need to keep it that way. I am pulling data from the repository as a whole, not a project. Is there perhaps a way to inquire on a set of details/totals for a given repository? |
One answer
As Ben mentioned, I don't think you can get this info from any api today. the raw count of these objects doesn't have any meaning really. especially across the entire repository.
what would the total number of build definitions mean? Comments
Mike Shkolnik
commented Apr 21 '14, 12:17 p.m.
It means I can have a progress bar showing how much I have loaded and how much is to go when I am loading all the build definitions through the API... Same goes for the other numbers - I need them to show progress and estimate time remaining when loading the complete list.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I am fairly certain this cannot be achieved through the REST API, but maybe someone will prove me wrong. If you use the Data Warehouse this should be a simple task, although the counts are only as up to date as when you last ran the ETL.