kbsali / php-redmine-api

A simple PHP Redmine API client, Object Oriented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Searching issues by subject with wildcard not working

italo1983 opened this issue · comments

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);

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.

Hi,
sorry but is not working..
Schermata 2021-10-05 alle 00 39 17
Schermata 2021-10-05 alle 00 39 37

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.