Project

General

Profile

Actions

Defect #29521

closed

REST API: Filtering issues by issue_id does not work as the documentation suggests

Added by James Ferguson over 5 years ago. Updated over 5 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

the documentation for issues here (http://www.redmine.org/projects/redmine/wiki/Rest_Issues) states that there is an optional filter to filter by one or multiple issue ids:
"issue_id: get issue with the given id or multiple issues by id using ',' to separate id."

I've been unable to get this to work in any form and the documentation seems to be incorrect, here are some example requests using this very database and a few valid issues ids (320, 9000 and 12002):

http://www.redmine.org/issues.json?id=9000&limit=1
http://www.redmine.org/issues.json?id=320,12002&limit=2

if you follow those links in the browser you'll notice you also get incorrect results, it seems to just return issues from either the very start or very end of the issue list and not the ids that were actually requested. This is unfortunate because otherwise to retrieve the journals for multiple issues I need to make multiple requests using issues/id.json?inlcude=journals rather than being able to batch them together as the documentation suggests with issues.json?id=1,2,3,4,5&include=journals

I'm not sure which version of redmine the database at www.redmine.org is using but this is what I've been testing against


Related issues

Related to Redmine - Defect #25400: Documentation for Rest API issue listing seems incorrectClosed

Actions
Actions

Also available in: Atom PDF