This article explains how to receive the last comment made on the issue in the transition screen in the email notification using Email Issue Post-function.
...
Navigate to the desired workflow transition and add the Transition Issue post function.
Select the Post functions tab and click
Add post function
.Add the target transition Id of the specific workflow and custom field Id based on your Jira instance.
code
Code Block <% if (transientVars.comment) { %> A reply has been recieved on ${issue.key}: ${transientVars.comment} <% } %>
PF
r
r
r
r
r