Project

General

Profile

Actions

Defect #10358

closed

REST API: Multiple query fields

Added by Markus Korber about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

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?

Actions #1

Updated by Sridhar P about 12 years ago

I can replicate this on trunk at rev 9245.

Actions #2

Updated by Sridhar P about 12 years ago

Sridhar P wrote:

I can replicate this on trunk at rev 9245.

Sorry, rev 9145

Actions #4

Updated by Markus Korber about 12 years ago

  • 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?
Actions #5

Updated by Sridhar P about 12 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?

Actions #6

Updated by Etienne Massip about 12 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

Actions #7

Updated by Etienne Massip about 12 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF