Hi guys,
I want to send a custom e-mail when issues transition to a specific status.
During this transition, there is an issue screen, so the user can leave a comment during this transition.
In case there is a comment, it should be included in the e-mail.
So far it's quite easy with Jira Automation:
- Trigger: Issue transitioned
- Action: Send Mail
- using this smart value in the mail body: {{issue.comments.last.body}}
Works like a charm. But: in case the user leaves no comment during the transition, the above automation will just use the latest comment on the issue in the mail body.
But in this case, no comment should be included in the e-mail!
How do I implement this?
PS: Here is the documentation about using comments as smart values. It did not help me.