Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation email containing comment.body isn't pasting the comment into it.

Stephen Solomon
Contributor
November 9, 2021

Hello,

I'm setting up a basic notification to our inventory guy when someone moves equipment around and it's just a simple if field is marked Yes in the closing transition (which must contain a comment) then refetch data and send an email containing that comment. 

I have another slightly more complex automation task that does basically the same thing so I know this should be working. 

Halp.

- Stephen

inventory.jpg

 

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 10, 2021

Hi @Stephen Solomon 

Good idea putting in the Re-fetch, as I was wondering if you are encountering a timing issue.  You may still want to confirm if the transition is still occurring *before* the dialog appears and so is user-bound time for entering the comment.

Regardless, in your email please consider treating the comments as a list, so I believe to get the last one you need:

{{issue.comments.last.body}}

Kind regards,
Bill

Stephen Solomon
Contributor
November 10, 2021

So yeah, just swapping the tag for that one fixed it. Makes no sense to me why it needs that when the other task I have calls the comment with comment.body just fine. There must be a bug there...

But it's working now which is all I care about. :)

Thank you!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer