Project

General

Profile

Actions

Defect #16487

open

REST Custom Field Filter requires project_id but not documented

Added by Tyghe Vallard almost 10 years ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

It seems that this effects both 2.2.2-stable and 2.4-stable

  1. Create Custom Field
  2. Set as both searchable and filter
  3. Assign to tracker and project

This returns only the issues with Custom Field ID 1 and value <value>
/issues.json?project_id=<projectid>&cf_x=<value>

This returns all issues
/issues.json?cf_x=<value>

The Wiki from what I can see does not indicate that the project_id is required, but it seems to be. Not sure if that is intended or not, but needs to be fixed or documented as such.

Environment:
  Redmine version                          2.2.2.stable
  Ruby version                             1.9.2 (x86_64-linux)
  Rails version                            3.2.11
  Environment                              production
  Database adapter                         PostgreSQL

Not sure if it matters or not, but I have 2.2.2-stable and 2.4-stable both installed on Heroku and both have the same issue.

No data to display

Actions

Also available in: Atom PDF