プロジェクト

全般

プロフィール

Vote #74473

未完了

Filter by custom field (only) doesn't work in REST API

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
15045
author_id:
6054
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
73
ステータス-->[New]

説明

cf_x: get issues with the given value for custom field with an ID of x. (Custom field must have 'used as a filter' checked.)

I tried to filter issues by custom field and initially I tried to put only this filter in the URL. I issued the following request on my Redmine instance:

http://hq.company.com.br/redminetest/issues.xml?cf_24=1&limit=25&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The query above fetch all the issues on my instance, regardless of the custom field 24's value.

http://hq.company.com.br/redminetest/issues.xml?project_id=176&cf_24=1&limit=25&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The query above works perfectly, filters by project and by custom field.

The REST is only working properly if there is a project filter together with the custom field filter, it doesn't work alone.
My field is marked with 'use as filter' only.

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0