Andrea,

I did something similar to integrate otrs and HipChat (chat client). I found this nice TicketSMSNotification OTRS plug-in at http://opar.perl-services.de/dist/TicketSMSNotification. This served as a guide for what I was trying to accomplish. You can easily replace your curl command with a perl function that uses LWP::UserAgent and HTTP::Request to submit a POST request. This will allow you to easily capture the response and log it to otrs.

Jay

Jay

On Fri, Aug 21, 2015 at 12:58 AM, Andrea Iannucci <andrea.iannucci@firstclarity.com> wrote:
Hi everyone,

i'm quite new to OTRS and i'm trying to add a custom notification method on ticket status change (new, followup, close).

I would like to integrate OTRS with Slack, so i wrote the script to post on Slack (using curl command line).

I was able to create a generic agent and it is working, but he is notifing me about all the tickets that match a specific status on a crontab manner that i've set in the agent configuration.

What i would like to acchieve is to have a notification (as it correctly working for emails) everytime there is a new ticket, or an existing ticket get a reply from the customer and when a ticket get closed.

So, i think that work with the agent is not the right place, i feel like i've to create a notification script, but i dont know how to acchieve this (and apparently all the information i've found online didnt help me that much).

So, anyone can help me out on this? I just need to hit a bash script (so a command line) everytime there is a status change on a ticket.

Thanks in advance

Best regards

Andrea Iannucci
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs