GenericAgent.pm code affecting the tickets again and again

Moderator: crythias

Locked
adt
Znuny newbie
Posts: 43
Joined: 28 Jun 2012, 17:04
Znuny Version: 2.4.9

GenericAgent.pm code affecting the tickets again and again

Post by adt »

Code: Select all

'0010 sla for problem queue tickets' =>
        {
               Queue => ['queue1'],
               SLA   => ['ZZZZ'],

         # new ticket properties

                New =>
                {
                        SLA  => 'ABCD',
                        Service => '06 Problem',
                      Note => {
                                From => 'Generic Agent (GenericAgent.pm)',
                                Subject => 'auto-removed SLA',
                                Body => 'The sla of ticket was automatically removed via GenericAgent.pm filtered by Problem Queue. ver3',
After working once, normally it should not be applied on tickets as the SLA has been assigned as ''ABCD"(regardless of queue is same as "queue1") because it doesn't fulfull both conditions collectively (Queue => ['queue1'] and SLA => ['ZZZZ']) anymore, but it continuously affects the tickets whenever the genericAgent runs even if the SLA has been changed from ZZZZ to ABCD??
Any Ideas on it??? It is strange behaviour from genericAgent..
If i will change the queue from queue1 to queue2, then it schedules only once..
Please help me regarding this..
adt
Znuny newbie
Posts: 43
Joined: 28 Jun 2012, 17:04
Znuny Version: 2.4.9

Re: GenericAgent.pm code affecting the tickets again and aga

Post by adt »

Anyody please???
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: GenericAgent.pm code affecting the tickets again and aga

Post by crythias »

seems as if your code might be okay, but it would be good to see what your entire GenericAgent.pm file looks like and if there are sub entries that change it back, and what the logs say when GenericAgent.pm runs.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked