Feature #10828

Request multiple distinct values including issue id, parent_id, root_id

Added by Jeffrey Clark about 1 year ago. Updated 4 months ago.

Status:NewStart date:
Priority:NormalDue 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.
Issues Controller:
  • Support 'id', 'root_id', 'parent_id' params.

restapi-issues-id-param.patch Magnifier (1.63 KB) Jeffrey Clark, 2012-05-03 22:01

History

#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

#3 Updated by Markus M 10 months ago

  • Assignee set to Jean-Philippe Lang

Please consider to add the patch to a release.

#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

Also available in: Atom PDF