Hi James, this is already possible using existing ticket hooks located on this documentation page: http://docs.whmcs.com/Hooks:Support_Tickets

If you have questions as to how to configure this please open a support ticket and our staff will be happy to assist, or take a look at our forums at http://forums.whmcs.com/forum.php.