Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combine queries with or #333

Open
pkoevesdi opened this issue Dec 15, 2023 · 2 comments
Open

combine queries with or #333

pkoevesdi opened this issue Dec 15, 2023 · 2 comments
Labels
pending: missing api Issue is pending because a Redmine API is missing question

Comments

@pkoevesdi
Copy link

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"?

@Art4 Art4 added the question label Dec 16, 2023
@Art4
Copy link
Collaborator

Art4 commented Dec 16, 2023

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.

@pkoevesdi
Copy link
Author

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

@Art4 Art4 added the pending: missing api Issue is pending because a Redmine API is missing label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending: missing api Issue is pending because a Redmine API is missing question
Projects
None yet
Development

No branches or pull requests

2 participants