Generic agent search for multiple words in subject

Moderator: crythias

Post Reply
peo
Znuny newbie
Posts: 24
Joined: 04 Feb 2015, 14:46
Znuny Version: 3.3.9
Real Name: Per Olsen
Company: Capana

Generic agent search for multiple words in subject

Post by peo »

Hi

How to i set the filter, so that a gerneric agent searches for multiple words in subject line?

ex.. it needs to search for "Kolding, Albertslund and Søborg"

I have tried to make the search as "*Søborg*" "*Kolding*" - but it does not work

Only if i type "*Søborg*" it works - do i realy need to make multiple generic agents?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Generic agent search for multiple words in subject

Post by hkais »

how did you solve your issue?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
alexus
Znuny wizard
Posts: 380
Joined: 20 Sep 2010, 16:54
Znuny Version: OTRS 6 CE
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: Generic agent search for multiple words in subject

Post by alexus »

Hi

*Kolding*Albertslund*Søborg* works like Kolding AND Albertslund AND Søborg. If you need Kolding OR Albertslund OR Søborg you should create 3 separate jobs for every pattern.
Alexey Yusov

Production: OTRS CE ITSM 6.0.28 on CentOS 7 + Apache 2.4 + MariaDB 10.4.13 + Radiant Customer Portal

Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
((OTRS)) Community Edition - what next?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Generic agent search for multiple words in subject

Post by hkais »

honestly?
In the year 2018 we need such a bad workaround to copy rules and to do all manually?
cannot understand it, since afaik it shall be a simple mapping to SQL syntax if allowing the conditions

Code: Select all

SQL => string
OR => e.g. |
AND => e.g. &
braces () => () -- for allowing expressions
% => * for allowing wildcards
and mostly 90-95% of all possible cases would be handled properly. Especially since that area is only accessible to power users or even admins.

sadly none in my team is able to program the outdated perl...
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Post Reply