Problem: Jira allows you to configure a workflow that will require user to provide a comment on issue transition. You would like to send the body of that comment as well as notification about status change in a single email.
Solution: This kind of issue workflow transition will basically trigger two webhooks - comment_created and issue_updated. You'll need to configure a notification against the latter. The screenshot below shows an example of
such configuration, that will trigger when issue is resolved:
Note, that we use the following construct to get that most recent comment entered during workflow transition:
Getting the most recent comment
#foreach ($com in $!issue.renderedFields.comment.comments) #if ($foreach.count == $!issue.renderedFields.comment.comments.size()) $!com.body #end #end