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

How to fetch the last comment on the Lookup issues?

Sowjanya Mupparaju September 3, 2024

I wrote an automation rule and used a JQL query in Lookup Issues which will have more than 4 issues as a result of the JQL query. Now I need to send the details of the Lookup issues in a table format with Columns Issue Key, Priority, Assignee, Last Comment on the issue etc., in an email to the initiator of this automation rule. I wrote html tags to build in the Email "Content" field like below

<table>

<tbody>

<tr>

<th>Jira Key</th>

</tr>

<tr>

<td>{{lookupIssues.key}}</d>

</tr>

</tbody>

</table>

The problem is when I use {{lookupIssues.comments.body}} I could see all the comments on the Jira issue being populated but I want only the last comment on each Lookup issue.. I tried using {{lookupIssues.comments.last.body}} but this is not giving me any results in the Last Comment column.. Any solution?

 

1 answer

1 accepted

1 vote
Answer accepted
Samuel Gatica _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 3, 2024

Hi @Sowjanya Mupparaju 

 

Kindly refer to the similar post at the following link: Getting last comment with lookupissue 

 

Best regards

Sam

Sowjanya Mupparaju September 3, 2024

@Samuel Gatica _ServiceRocket_ : Thanks for sharing the link.. Even I used #lookupissues and it worked.. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events