Feature #10828
Request multiple distinct values including issue id, parent_id, root_id
| Status: | New | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Jean-Philippe Lang | % Done: | 0% | |
| Category: | REST API | |||
| Target version: | - | |||
| Resolution: |
Description
Patch is intended to reduce the need for multiple issues requests and provide granular issue tree lookups (parent_id / root_id)
For example, instead of three requests:
/issues.xml?tracker_id=2
/issues.xml?tracker_id=6
/issues.xml?tracker_id=7
You can do:
/issues.xml?tracker_id=2|6|7
Changes
Query Model:- Extends integer equality, converts array of values to 'IN' sql.
- Support 'id', 'root_id', 'parent_id' params.
History
#1 Updated by Jeffrey Clark about 1 year ago
- File restapi-issues-id-param.patch
added
#2 Updated by Markus M 10 months ago
Is this patch going to become part of an official release of redmine?
I assume, with this patch, the following GET will work? http://demo.redmine.org/issues.xml?id=2521|4456
To be consistent with the rest of the API you might want to change the seperator from "|" to ",". That's how the redmine API works for ?inculde=journals,changesets
Related use case: http://www.redmine.org/issues/10259
#4 Updated by Hannes Meier 10 months ago
+1
and would resolve #10763
#5 Updated by Thomas Lmx 4 months ago
+1
It resolves the Feature #6118 with the API