Abstract

This code snippet fetches the comment added during a transition

Logic

Access the body of the last comment of the issue, if it was created less than 6 seconds before.

Snippet 

{% 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 %}

Placeholders

NA

Examples

The output of this snippet is a String which you can use to:

References

Related articles


Related issues