Execute custom code after ticket creation

Moderator: crythias

Locked
name29
Znuny newbie
Posts: 2
Joined: 11 Jul 2014, 15:24
Znuny Version: 3.3.2

Execute custom code after ticket creation

Post by name29 »

Dear,

I need to execute some custom code (launch a bash script ) after ticket creation in OTRS.

My script requires an arguments equal to customer id.

Can you help me to do this?


Thank you
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: Execute custom code after ticket creation

Post by reneeb »

Write an event module that listens for TicketCreate events. Maybe you have to listen for ArticleCreate events and check if thats the first article of the ticket
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
name29
Znuny newbie
Posts: 2
Joined: 11 Jul 2014, 15:24
Znuny Version: 3.3.2

Re: Execute custom code after ticket creation

Post by name29 »

Can you help me to find documentation and example about event module?


Thank you
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: Execute custom code after ticket creation

Post by reneeb »

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
Locked