Project

General

Profile

REST API search does not return expected results

Added by Anthony Hunter over 7 years ago

I am trying to search issues for fields with specific values and my results returned are not what is expected. I am using Redmine 3.0.

In all of these searches I expect to only see one issue returned.
When I search on the subject field I get what I expect, one record. But, when I try to search by ID, I get multiple; I also see this when searching with a custom field (which has the searchable option enabled), more then one record is returned.

Has this issue been resolved in the newer versions, 3.1, 3.2, or 3.3?

Example search urls:
Works as expected:
http://redminetest/issues.xml?subject=I/O Tools
Returns multiple results when only 1 is expected
http://redminetest/issues.xml?id=12345
http://redminetest/issues.xml?cf_15=System


Replies (1)

RE: REST API search does not return expected results - Added by Anthony Hunter over 7 years ago

I figured out my problem. The "For all Projects" option needed to be checked on the custom field. My field was only for one project which is why I didn't initially check this.

Is this not a bug? I would think that as long as the "Searchable" option is selected, you could then search using the custom field.

    (1-1/1)