Searching issues by subject with wildcard not working
italo1983 opened this issue · comments
italo1983 commented
Searching issues by subject using wildcard does not return results:
$data = [
'offset' => $offset,
'limit' => $limit,
'sort' => $sort,
'project_id' => $project_id,
'tracker_id' => $tracker_id,
'status_id' => $status_id,
'subject' => '~'.$subject
];
$res = $this->redmine->getApi('issue')->all($data);
Artur Weigandt commented
Hey 👋
I simplified your example to just the wildcard field in the subject:
$res = $client->getApi('issue')->all([
'subject' => '~Issue'
]);
This gives me 4 results and thats the number I'd expected.
Please make sure that your other values in $data
are correct.
italo1983 commented
Artur Weigandt commented
Please try 2016curry~
.
But this is an undocumented feature of Redmine-API. It seems that using wildcards in subject isn't supported at the moment, see https://www.redmine.org/issues/13347
So there is nothing we can do here.