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
Call URL after TicketCreate?
Moderator: crythias
-
- 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?
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Call URL after TicketCreate?
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?
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?
-
- 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?
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de