[itsm] Tickets search conditions

Michiel Beijen michiel.beijen at otrs.com
Tue Sep 27 08:27:06 GMT 2011

Hi Sergey,

On Tue, Sep 27, 2011 at 09:57, Sergey Kasatkin <root at onsky.ru> wrote:

> To search tickets sent to specific e-mail in OTRS 3 I'm using following URL:
> /otrs/index.pl?Action=AgentTicketSearch&Subaction=Search&To=mailbox at domain.tld
> and for e-mail, which was specified in Cc field:
> /otrs/index.pl?Action=AgentTicketSearch&Subaction=Search&Cc=mailbox at domain.tld
> But when I'm using both of fields in the search conditions, only tickets
> that meet all conditions come into result.
> So, the question is, how to search tickets, which meet any of conditions:
> "Tickets which contain 'mailbox at domain.tld' in To _OR_ Cc"?

It does not do exactly what you want; but this searches To, CC, From
and the article body:

/otrs/index.pl?Action=AgentTicketSearch&Subaction=Search&Fulltext=mailbox at domain.tld

The API itself supports searching just "To OR Cc" but it would be
difficult to express this in the GUI.

More information about the itsm mailing list