kbsali / php-redmine-api

A simple PHP Redmine API client, Object Oriented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

combine queries with or

pkoevesdi opened this issue · comments

Is it possible to make a query $issues_reply = $client->getApi('issue')->list() with OR-combined parameters? Like "all tickets that are 'author' => 5 OR 'assigned_to' => 5"?

As far as I can see there is no possibility to use OR in filters.

As a workaround you can make two requests (first with 'author' => 5 and second with 'assigned_to' => 5) and merge the results together.

Ok, thanks. Faster than my workaround: retrieve all issues and filter then.