From: Vladimir V. <vu...@cs...> - 2002-01-31 15:38:03
|
On Wed, 2002-01-30 at 18:23, Roy Rapoport wrote: > Speaking of which, by the way, would you care to share with the group the > diff for making it possible to email for every change of status of a > ticket? I need this functionality also and would love to not reinvent the > wheel. Per popular request I am attaching changes we made. This might or might not be useful to you. We are a 3 person IT department and all IT people have ISMANAGER privileges in PHPHelpdesk. We wanted to get notified any time any of us made a change in the Helpdesk system or as soon as a ticket was filed. Something similar to WebRT. If you do not require such functionality these patches are not for you. The "patch" contains 1. vj_sendnotification.php file that is attached. Copy it into the scripts/ directory 2. addjob.scp.php DIFF file 3. vj_addevent.scp.php DIFF file ----- 1. Contains two functions. Get_manager_emails gets addresses of all people who are "ISMANAGER". The other function was used to send notification for 3. 2. This sends notification to ISMANAGER as soon as the ticket is submitted. 3. Sends notification to ISMANAGER of a change in a ticket status. That is it. All in all about 25-30 lines of code. Nothing too fancy or complicated. Vladimir |