Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to send last comment with the Automate and lookup issues?

Mikhail Singaevsky August 23, 2021

Hello all!

I'm writing report using Automate and lookup Issues. And I need to send the last comment.
If I use any smart values with comment, I don't get comments in the email.

Please, help me, how can I send last comments for lookup issues in one email?
Maybe there is another way to configure Automate for this or another request?

 

{{#lookupIssues}}

<a href="{{url}}">{{key}}</a> {{now.mediumDateTime}}
{{summary}}

<b>Description:</b>
{{description}}

<b>last Comment:</b>
{{lastComment}}, {{Comment}}, {{comment.body}}, {{issue.lastComment}},
{{issue.fields.lastComment}} -- any smart values with comment that I used don't work


{{/}}

image.png

1 answer

1 accepted

3 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.
August 23, 2021

Hi @Mikhail Singaevsky -- Welcome to the Atlassian Community!

For Jira Cloud automation, lookup issues only supports a limited number of fields, and comments are not included.  There is a suggestion to add more fields, and it is in the "future consideration" status: JRACLOUD-75018

One complicated work-around for this would be to use a web request action to call the REST API with a JQL search, and then parse the response with text and list functions to build your email.

Best regards,
Bill

Mikhail Singaevsky August 24, 2021

Hello and thank you!

Like Bill Sheboy likes this
Михаил Сингаевский
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 26, 2021

Please tell me how to continue using Automate tools to work with the received JSON?

Please show me an example?2021-08-26_17-13-50.png

 

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.
August 26, 2021

Hi @Михаил Сингаевский -- Welcome to the Atlassian Community!

You may access the response using the smart value:
https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvaluesgeneral---webhookResponse--

You will need to understand the structure of your specific request/response in order to parse it.

To parse it, you may dereference the fields with dot-notation and/or extract pieces using:

Best regards,
Bill

Like Mikhail Singaevsky likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events