A similar question was recently asked in this topic. Your use case seems slightly different, but could be done in a similar fashion with Power Scripts Live Fields functionality. Essentially you could hide the "Add Comment" button for all issues in a project, and only show it again if the user has logged work on the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.