Feature #10259
closedAllow getting a list of issues by ID through the API
0%
Description
Currently it is impossible to get a list of issues from the API via GET /issues.xml
, if you only have a list of issue ids.
The only way to get their data is to retrieve them one by one through the API /issues/[id].xml
, which is too slow for practical integration purposes if you have more than 10 issues.
In our company plugin we have added this feature by adding an 'id' entry to query::available_filters
as a ':list_optional' and empty ':values', but this also inserts the 'id' filter in the issues query with an empty dropdown, not the prettiest solution...
Related issues
Updated by Alex Last over 12 years ago
this is incorrect. REST API allows to retrieve issues list using "filter ID". this is what our application have been using for 2 years now.
Updated by Daan Broekhof over 12 years ago
It would be great if this functionality is already present, but looking through the 1.3 code I cannot find where this feature should be?
Nor is it documented on the API page what the exact list of possible filters is...
Could you give me an example API url you use to get multiple issues by ID?
Updated by Alex Last over 12 years ago
take a look at our Java library source code, which does this: http://code.google.com/p/redmine-java-api/source/browse/
Updated by Daan Broekhof over 12 years ago
I have looked through your java library, and have not found a specific ID filter, only that a list of params are passed through via RedmineManager::getIssues(pParameters).
Could you give me a Java call example that would get a list of issues, specified by their ID?
Or the specific parameter passed to getIssues() to get the desired result?
Updated by Alex Last over 12 years ago
that's not exactly how it works. I mean you can provide filterID to getIssues request.
Updated by Daan Broekhof over 12 years ago
Ah but does that not mean you do client-side filtering on the ID? You still then retrieve the entire issue list from the server.
Updated by Toshi MARUYAMA almost 11 years ago
- Related to Feature #10828: Request multiple distinct values including issue id, parent_id, root_id added
Updated by Go MAEDA over 5 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Recent versions of Redmine supports the following syntax:
http://redmine.example.com/issues.json?issue_id=1,2
Updated by Go MAEDA over 5 years ago
- Related to Feature #4806: Filter the issue list by issue ids added
Updated by Игорь Эдуардович over 3 years ago
Go MAEDA wrote:
Recent versions of Redmine supports the following syntax:
http://redmine.example.com/issues.json?issue_id=1,2
dont work
example: https://www.redmine.org/issues.xml?issue_id=10259
Updated by Go MAEDA over 3 years ago
Игорь Эдуардович wrote:
Go MAEDA wrote:
Recent versions of Redmine supports the following syntax:
http://redmine.example.com/issues.json?issue_id=1,2dont work
example: https://www.redmine.org/issues.xml?issue_id=10259
Try with the latest version of Redmine. The Redmine version of www.redmine.org is not the latest version.