Feature #10259
closed
Allow getting a list of issues by ID through the API
Added by Daan Broekhof almost 13 years ago.
Updated almost 4 years ago.
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...
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.
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?
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?
that's not exactly how it works. I mean you can provide filterID to getIssues request.
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.
Patch available, see Issue #10828
- Related to Feature #10828: Request multiple distinct values including issue id, parent_id, root_id added
- Status changed from New to Closed
- Resolution set to Fixed
- Related to Feature #4806: Filter the issue list by issue ids added
Also available in: Atom
PDF