Rest Api: filter by issue category
|Status:||Needs feedback||Start date:|
It would be really nice to allow filtering issues by their assigned issue category.
Perhaps the filter could be expanded to allow matching string searches? Similar to when searching for sub-strings in custom fields.
#1 Updated by Holger Just 9 months 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.
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.