Project

General

Profile

Actions

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.

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

0%

Estimated time:
Resolution:
Fixed

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

Related to Redmine - Feature #10828: Request multiple distinct values including issue id, parent_id, root_idNewJean-Philippe Lang

Actions
Related to Redmine - Feature #4806: Filter the issue list by issue idsClosedJean-Philippe Lang2010-02-11

Actions
Actions #1

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.

Actions #2

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?

Actions #3

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/

Actions #4

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?

Actions #5

Updated by Alex Last over 12 years ago

that's not exactly how it works. I mean you can provide filterID to getIssues request.

Actions #6

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.

Actions #7

Updated by Jeffrey Clark over 12 years ago

Patch available, see Issue #10828

Actions #8

Updated by Toshi MARUYAMA about 11 years ago

  • Related to Feature #10828: Request multiple distinct values including issue id, parent_id, root_id added
Actions #9

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

Actions #10

Updated by Go MAEDA over 5 years ago

  • Related to Feature #4806: Filter the issue list by issue ids added
Actions #11

Updated by Игорь Эдуардович almost 4 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

Actions #12

Updated by Go MAEDA almost 4 years ago

Игорь Эдуардович wrote:

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

Try with the latest version of Redmine. The Redmine version of www.redmine.org is not the latest version.

Actions

Also available in: Atom PDF