generic agent filter

Moderator: crythias

Post Reply
thedoctor
Znuny newbie
Posts: 3
Joined: 23 Nov 2021, 15:24
Znuny Version: six
Real Name: Luca Rossi

generic agent filter

Post by thedoctor »

Hi,
I am trying to use the generic agent to do some actions on all of the tickets that have a specific keyword in the subject. It works but sometimes it doesn't but I don't know why.
Let us assume that "cat" appears somewhere in the subject: for example "the cat is on the table".
According to what happens on Linux, if I insert *cat* in the subject field on the generic agent page, OTRS would find any ticket whose subject includes the word cat, as * indicates 0 or any number of characters. So "cat" could be anywhere in the text. This usually works but not always. I am not sure how to select tickets based on keywords. There is no documentation online on how to use it.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: generic agent filter

Post by reneeb »

thedoctor wrote: 23 Nov 2021, 17:33 This usually works but not always.
You should check the tickets that are found and those that are not found but you expected them to be found. What's the difference?

Do you find the tickets when you run the SQL query
SELECT * FROM ticket WHERE title LIKE '%cat%'
?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
thedoctor
Znuny newbie
Posts: 3
Joined: 23 Nov 2021, 15:24
Znuny Version: six
Real Name: Luca Rossi

Re: generic agent filter

Post by thedoctor »

I noticed that for words longer than 31 characters, it doesn't work. If I have something like this in the subject:

aaaaaaaaaaaaaaakeywordaaaaaaaaaaaaaaaaa

and i search for the word "keyword" within that long word, it doesn't work.
Post Reply