Call URL after TicketCreate?

Moderator: crythias

Post Reply
pebeITS
Znuny newbie
Posts: 29
Joined: 26 Jul 2012, 22:16
Znuny Version: 5.0.5

Call URL after TicketCreate?

Post by pebeITS »

hi... is it possible to call a url after a ticket has been created? (for monitoring acknoledge; not nagios, so I cannot use the monitoring plugin)
regards
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: Call URL after TicketCreate?

Post by reneeb »

Sure, you can write your own event module... Instead of Locking the ticket in https://gist.github.com/reneeb/77f4eb6a ... 2e20dbea9c you could call the URL. Hint: There is a module to call an URL: Kernel::System::WebUserAgent
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
pebeITS
Znuny newbie
Posts: 29
Joined: 26 Jul 2012, 22:16
Znuny Version: 5.0.5

Re: Call URL after TicketCreate?

Post by pebeITS »

sounds good... thank you.
would it be possible to pass a dynamic field as argument or just the two arguments arg[0] and arg[1] mentioned in the docs?
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: Call URL after TicketCreate?

Post by reneeb »

In the event module you can use the TicketGet method (https://doc.otrs.com/doc/api/otrs/6.0/P ... #TicketGet) to get all needed information...
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
Post Reply