Defect #10358
REST API: Multiple query fields
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | REST API | |||
| Target version: | - | |||
| Affected version: | Resolution: | Invalid |
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?
History
#1 Updated by Sridhar P about 1 year ago
I can replicate this on trunk at rev 9245.
#2 Updated by Sridhar P about 1 year ago
Sridhar P wrote:
I can replicate this on trunk at rev 9245.
Sorry, rev 9145
#3 Updated by Etienne Massip about 1 year ago
Use >< operator for "between": http://www.redmine.org/issues.xml?created_on=><2012-03-01|2012-03-02.
#4 Updated by Markus Korber about 1 year ago
- Status changed from New to Resolved
- Is this somewhere in the docs?
- Can we close #8842 too?
#5 Updated by Sridhar P about 1 year 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?
#6 Updated by Etienne Massip about 1 year 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
#7 Updated by Etienne Massip about 1 year ago
- Status changed from Resolved to Closed
- Resolution set to Invalid