Searching tickets with OR logic using Java Client



Gepostet 24. Okt. 2023

Hi mates,

using Java zendesk client I am trying to search tickets that have a custom field that belongs to a given set. For example I want to get the ticket that their custom field "f1" value is "v1" OR "v2".

According to doc if I repeat the property keyword it will act as an OR logic but it does not. 

I'm doing:

String query = "custom_field_xxxxx:value1" + "custom_field_xxxxx:value2";
Iterable<Ticket> ticketsFromSearch = zendesk.getTicketsFromSearch(query);

I have a ticket that matches that "value2" but no ticket is returned.

How should I do this?

Thanks in advance!


0

0

0 Kommentare

Anmelden, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post