Project

General

Profile

issue API limit not working

Added by David Demelier almost 6 years ago

Hello,

I'm trying to use the limit URL parameter in the Redmine issue listing API as following:

curl -o issues.json https://myredmineinstance.tld/issues.json?key=xxxx&limit=5

But once downloaded, the JSON still contain 25 issues and the limit shown is 25.

{
    "issues": [... 25 issues here ...],
    "total_count":70,
    "offset":0,
    "limit":25
}

Is there something I'm doing wrong? I'm using Redmine 3.1.1.


Replies (2)

RE: issue API limit not working - Added by Go MAEDA almost 6 years ago

The limit parameter (e.g. limit=5) works fine for me with Redmine 4.0.0.

Please note that Redmine 3.1 is too old and no longer supported. Please consider updating to Redmine 3.4 or 4.0.

RE: issue API limit not working - Added by David Demelier almost 6 years ago

Hello,

I've upgraded to 4.0 and the limit argument works now. However, I'm still limited to 25 at max. Is there a way to specify an infinite list?

Example. limit=-1 or just limit=0.

EDIT: for the moment I will use limit=<UINT_MAX> then.

Regards,

    (1-2/2)