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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,473
Community Members
 
Community Events
176
Community Groups

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

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

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

Hello and thank you!

Like Bill Sheboy likes this

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

 

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

Atlassian Community Events