Question: your SD agent is commenting a JSD ticket and customer is notified. Customer replies via email, this comment is added to the ticket, but customer receives a notification as well. How to avoid it?
Answer: Wrap your current notification template like that:
it will ensure that the notification will render only when it is sent by non-reporter.
Or, alternatively, you can do the following:
The snippet above will check that the action was performed by a user with specific email domain name. It works, because, normally, your agents' emails are within one specific domain, while your customers are in other. Replace "yourdomainname.com" with a domain that is used by your organisation.