プロジェクト

全般

プロフィール

Vote #81631

未完了

Rest Api: filter by issue category

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

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

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
35843
author_id:
148390
assigned_to_id:
0
comments:
2
status_id:
10
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Needs feedback]

説明

It would be really nice to allow filtering issues by their assigned issue category.

E.g.:

/issues.json?category_id=1234

Perhaps the filter could be expanded to allow matching string searches? Similar to when searching for sub-strings in custom fields.

/issues.json?category_id=~some-category-search-string

journals

You can filter issues by their assigned numeric @category_id@ right now. This should work exactly as shown in your first example. See [[Rest_Issues#Listing-issues]].

To get a list of possible category IDs, you can use the categories API first to fetch all categories and select the ones you are interested in to use in your issue filter. This allows you to implement your second use-case with two queries.

In case this is not working for you, please provide more details, i.e. a reproducible data set, your specific query, and the exact behavior you are seeing. If possible, please also provide full logs of the request.
--------------------------------------------------------------------------------
The only viable details I can deliver to you is that I'm using a Redmine version 4.x. Thus, not yet the latest version of Redmine.
Sadly, when I attempted to what you wrote, I received an unexpected list of issues, containing all the assigned categories and not just the one that I was trying to filter by.
--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリREST API_32 にセット

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

いいね!0
いいね!0