A new option called "Update Last Reply Timestamp" has been added under Setup > General Settings > Support tab to achieve this. Select the Every time for staff replies, only on a change of status for clients option.
Relevant documentation: http://docs.whmcs.com/Support_Tab#Update_Last_Reply_Timestamp