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

Conditional in automation lookup issue

Dario Alarcón 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events