Forums

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

Email Automation when comment has specific word in it?

Ben Weisman
Contributor
August 17, 2023

Hello,

  I want a set of users to get an email if someone puts a comment into a ticket with a specific client name in it. Is this possible?

1 answer

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Champion
August 17, 2023

Hi @Ben Weisman 

You could create an automation for jira base on Issue Comment trigger, add a condition on the field that store the client information then use the action to send an email. You can configure who will receive it.

 

Regards

Ben Weisman
Contributor
August 17, 2023

Thanks @Florian Bonniec 

Where would I add the condition that essentially says "if comment contains the word 'Microsoft',"

Ben Weisman
Contributor
August 17, 2023

To be clear, I am hoping to search the comment for that specific term.

Florian Bonniec
Community Champion
August 17, 2023

I do not think having to search in the comment itself can be accurate so there is a risk of false positive.

You could use advanced compare 

{{comment.body.toLowerCase().match(".*(microsoft).*").isEmpty}}

If false, the comment contain the work if true it do not. I've not tested this solution

Jira smart values - text fields | Cloud automation Cloud | Atlassian Support

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events