Defect #10358
closedREST API: Multiple query fields
0%
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=2which 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-02which returns all issues created before 2012-03-02. Any chance to fix this?
Updated by Sridhar P almost 13 years ago
I can replicate this on trunk at rev 9245.
Updated by Sridhar P almost 13 years ago
Sridhar P wrote:
I can replicate this on trunk at rev 9245.
Sorry, rev 9145
Updated by Etienne Massip almost 13 years ago
Use ><
operator for "between": http://www.redmine.org/issues.xml?created_on=><2012-03-01|2012-03-02.
Updated by Markus Korber almost 13 years ago
- Status changed from New to Resolved
- Is this somewhere in the docs?
- Can we close #8842 too?
Updated by Sridhar P almost 13 years ago
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?
Updated by Etienne Massip almost 13 years ago
Sridhar P wrote:
Updated the documentation, http://www.redmine.org/projects/redmine/wiki/Rest_Issues
Thanks for that.
Is this expected with webrick?
No. Use the fully encoded form: http://www.redmine.org/issues.xml?created_on=%3E%3C2012-03-01%7C2012-03-02
Updated by Etienne Massip almost 13 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid