We connected our network monitoring system to Jira (Jira SD next-gen) via email. We successfully use automation (Project settings/Apps) to change the fields in the issue that just opened by email (using the information from the description field).
But there are questions on how to use 'smart value' when receiving an email with comments. We need to configure automation - when we receive a new email with comments on the issue, automation will use the contents of the email (comment body?) To change the fields (and status) of this issue (change the priority or close the ticket). In particular, you need to use the keyword (CRITICAL, WARNING, RECOVERY) from the comment (body), from which the new comment begins.
I try to use smart value {{issue.comments.last.body}}, but a false positive occurs for all three checks:
{{issue.comments.last.body}} starts with {{CRITICAL}}
{{issue.comments.last.body}} starts with {{WARNING}}
{{issue.comments.last.body}} starts with {{RECOVERY}}