It's all about the answers!

Ask a question

How to get repository totals through the REST API


Mike Shkolnik (9809161143) | asked Apr 18 '14, 6:35 p.m.
edited Apr 18 '14, 6:39 p.m.
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?

Comments
Benjamin Silverman commented Apr 18 '14, 6:46 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

One answer



permanent link
sam detweiler (12.5k6195201) | answered Apr 19 '14, 8:30 a.m.
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


Register or to post 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.