Simon A. F. Lund wrote:
Martin Edenhofer wrote:
Hi Simon,
Simon A. F. Lund wrote:
I would like to modify the way "New Ticket notification" for agents
work.
Adding some additional conditions as to whom the notification is
send, by doing some additional mysql queries.
I can't seem to find any documention on how this works.
Can you please point me in the right direction as to how
notification is implemented? Which modules etc. etc.
This is done in Kernel/System/Ticket/Article.pm ->
SendAgentNotification()
:-)
Without knowing all that much, i think i wan't to write a new function
let's call it "GetSubscribedUserIDsByCustomerId" replacing
GetSubscribedUserIDsByQueueID.
This function should lookup agent <-> customer relation that i have
stored in an additional table, what is required is that i pass
sufficient information from within ArticleCreate (namely the customer
id and get all agents with relation to this customer).
Is the customer name available in ArticleCreate?
I Found it, CustomerUserID can be retrieved from $Ticket{CustomerUserID}.
Regards,
Simon
Martin
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing
Fon: +49 (0) 9421 1862 760 :: Fax: +49 (0) 9421 1862 769
http://www.otrs.com/ :: Communication with success!
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev