The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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
TAGS
AUG Leaders

Atlassian Community Events