This code snippet fetches the comment added during a transition
Access the body of the last comment of the issue, if it was created less than 6 seconds before.
{% if issue.fields.comment.comments and now | date('diff',issue.fields.comment.comments | last | field("created")) < 6000 %} {{ issue.fields.comment.comments | last | field("body") }} {% endif %} |
NA
The output of this snippet is a String which you can use to:
Subject/HTML body/Text body of Email issue post-function
{% if issue.fields.comment.comments and now | date('diff',issue.fields.comment.comments | last | field("created")) < 6000 %} A comment: "{{ issue.fields.comment.comments | last | field("body") }}" has been added on the linked issue. {% endif %} |
|