Problem

Could not filter Service Desk internal comments with filterLocal commentHelper.

Cause

 Jira has introduced internal comments in Service Desk 3.0.  The commentHelper.filterLocal does not work in this case.

Solution

Use the following code to filter local comments

replica.comments = issue.comments.findAll { !it.internal }