I've created a groovy script that runs during a specific transition. It adds a simple comment by a specific user.
I'm expecting an email notification to be sent to the reporter, as is described in the notification scheme, but this is not working. It does when doing manual comments.
This is my groovy script:
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.comments.CommentManager
ComponentManager componentManager = ComponentManager.getInstance()
CommentManager commentManager = componentManager.getCommentManager()
commentManager.create(issue, "username", "Message bla bla bla", false)