Searching for Eventhandler

English! place to talk about development, programming and coding
Post Reply
rey90
Znuny newbie
Posts: 70
Joined: 16 Aug 2012, 15:56
Znuny Version: 4.0.10

Searching for Eventhandler

Post by rey90 »

Hello all,

i´m looking for some Eventhandlers for the following events:
TicketCreate
TicketClose
Escaltion=1

I have searched for some examples but couldn´t find anything.
Could you please give me some examples or hints for doing this.

The aim is to run a shell script if the event triggers

Thanks a lot.

Regards
Rey90
Produktiv: OTRS: 4.0.10
Testing": OTRS: 5
OS: Debian 7
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Searching for Eventhandler

Post by jojo »

Have a look in Kernel/System/Ticket/Event/

e.g. Test.pm
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rey90
Znuny newbie
Posts: 70
Joined: 16 Aug 2012, 15:56
Znuny Version: 4.0.10

Re: Searching for Eventhandler

Post by rey90 »

Thanks.

How can i active the module or run/test it?

if have put this in Config.pm but nothing shown in Core:Ticket

Code: Select all

$Self->{'Ticket::EventModulePost'}->{'99-Test'} =  {
        Module => 'Kernel::System::Ticket::Event::Test'
    };

Produktiv: OTRS: 4.0.10
Testing": OTRS: 5
OS: Debian 7
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Searching for Eventhandler

Post by jojo »

why should it apear in Sysconfig if you write it in Config.pm?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rey90
Znuny newbie
Posts: 70
Joined: 16 Aug 2012, 15:56
Znuny Version: 4.0.10

Re: Searching for Eventhandler

Post by rey90 »

shouldn´t be shown in Sysconfig to know that it is active?

Thanks for your help so far!
Produktiv: OTRS: 4.0.10
Testing": OTRS: 5
OS: Debian 7
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Searching for Eventhandler

Post by jojo »

Config.pm overrules Sysconfig so the answer is no.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
rey90
Znuny newbie
Posts: 70
Joined: 16 Aug 2012, 15:56
Znuny Version: 4.0.10

Re: Searching for Eventhandler

Post by rey90 »

could someone please tell me the events for TicketClose and Escalation Overtime?

TicketCreate is done successfull.

Thanks
Produktiv: OTRS: 4.0.10
Testing": OTRS: 5
OS: Debian 7
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Searching for Eventhandler

Post by jojo »

Ticket Close is not an event, the Event is TicketStateUpdate
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply