Project

General

Profile

[closed] Enummerating issues in the REST API without fetching all data

Added by Frederik S. over 11 years ago

Hi,
I am using the ActiveResource script and the Redmine REST API but I was wondering if there is an option to enummerate the issues that fit your request without recieving all the data. E.g. when I request GET /issues.xml?project_id=2&tracker_id=1&status_id=3 I get all the issues I want but I'd like to have a navigation that shows the number of issues for each tracker/status. The idea behind that is to reduce my traffic between the API and my script. Is there such option in the API or do I have to request all issues including thier data form the server?

sincerely,
FRED


Replies (2)

RE: Enummerating issues in the REST API without fetching all data - Added by Cheyenne Wills over 11 years ago

If the whole point is getting the number of items, set the limit to 1

GET /issues.xml?project_id=2&status_id=3&limit=1

In the response look at the "total count" value...

    (1-2/2)