I need to send an e-mail to an arbitrary e-mail address when a generic agent has relevant tickets regarding the filter I've set.
In the past I've used the Ticket Commands CMD field to execute a simple bash script to make a simple notification:
Code: Select all
#!/bin/sh
logfile=/var/log/otrs/notifications.log
msg="https://helpdesk.domain.com/otrs/index.pl?Action=AgentTicketZoom;TicketID=$2"
echo $msg >> $logfile
echo $msg | /bin/mail -s "Ticket $1 is blah blah" email@domain.com
I've found no example on how a custom module for a generic agent could be written nor how parameters are handled.
Please, could you help?
Thanks,
Stefano Coletta