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: 

Conditional in automation lookup issue

Dario Alarcón
Contributor
November 6, 2023

Hello, I need help with the following automation to filter comments made by the user "Jira Automation".

Trigger: Schedule
Action: Lookup issues
Action: Send email

01.png

I need to add a conditional in the following code so that the comments made by the user "Jira Automation" are not considered, what would the code be and where should I insert it?

Lookup issues code:

{{#lookupIssues}}
<li><a href="{{toUrl}}">{{key}} - {{summary}}</a>
{{assignee.displayName}}
{{comments.last.body}}
{{comments.updated.convertToTimeZone("America/Argentina/Buenos_Aires").shortDateTime}}
</li>
{{/}}

This is what the email sent by the automation looks like, the comments marked in red are the ones I need to avoid, because the author of them is "Jira Automation" and what I need is to only consider the comments made by clients and/or agents.

02.png

I hope for your collaboration, thank you very much!

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events