Defect #10358
closed
REST API: Multiple query fields
Added by Markus Korber about 13 years ago.
Updated about 13 years ago.
Description
Hi,
using the REST API with two queries of the same type works for 'tracker_id' like this:
http://www.redmine.org/issues.xml?tracker_id=1&tracker_id=2
which returns all issues with id 1 or 2 but fails for 'created_on'
http://www.redmine.org/issues.xml?created_on=>=2012-03-01&created_on=<=2012-03-02
which returns all issues created before 2012-03-02. Any chance to fix this?
I can replicate this on trunk at rev 9245.
Sridhar P wrote:
I can replicate this on trunk at rev 9245.
Sorry, rev 9145
- Status changed from New to Resolved
Thanks Etienne, this works as expected. Two more questions:
- Is this somewhere in the docs?
- Can we close #8842 too?
Updated the documentation, http://www.redmine.org/projects/redmine/wiki/Rest_Issues
When I try this url on my machine (with webrick), I am getting this error:
================================================================
Bad Request
bad URI `/issues.xml?created_on=%3E%3C2012-03-01|2012-03-02'.
================================================================
Is this expected with webrick?
- Status changed from Resolved to Closed
- Resolution set to Invalid
Also available in: Atom
PDF