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.
Use case: The last comment made on the issue should add while sending an email on a transition of the workflow.
Instructions
Navigate to the desired workflow transition.
Select the Post functions tab and click
Add post function
.Select
Email issue
from the list of post-functions.Click on
Add
to add the post-function on the transition.Add the below post function.
Add the below code in the Text Body.
<% if (transientVars.comment) { %> A reply has been recieved on ${issue.key}: ${transientVars.comment} <% } %>
Publish the workflow.
Add the comment in the issue during transition. It will send the email as shown below