Event Triggers of issue commented or assigned in Jira server

I’m creating a Jira server plugin, and I want to include triggers for issues that have been commented on and assigned. I looked into this here in the documents: IssueEventListener (Atlassian JIRA 7.1.7 API)
This document states that workflowEvent should be used instead of issue comment and issue assigned events because they are deprecated. However, if I were to use workflowEvent, every time the user made a change to the issue, the function would be called.
Is this the only way or are there any other options?

You don’t have to use IssueEventListener to listen to issue events.
This tutorial explains how to listen events.