Feature #35843

Rest Api: filter by issue category

Added by Aed Art about 1 month ago. Updated about 1 month ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution:

Description

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

History

#1 Updated by Holger Just about 1 month ago

  • Status changed from New to Needs feedback

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.

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.

#2 Updated by Aed Art about 1 month ago

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.

Also available in: Atom PDF