Forums

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

how to validate in Jira automation that last comment author is not from company domain

Rupali Choudhari
Contributor
August 16, 2023

Hello 

I have a requirement that we receive emails from third party vendors and those emails get added to Jira tickets as comments. I have a write an automation on a 'Issue comment' to change a status if the comment is added from non-company domain.

For example my company name is xyz.co.uk and the third parties are multiple who send us emails and Jira tickets get updated.

Now how to do I validate that the comment added is not from someone from xyz.co.uk company and instead from any third party vendor? And if it from third party vendor, it should change the ticket status.

Really looking forward for quick help.

2 answers

2 accepted

2 votes
Answer accepted
Jose Juan Lendinez Fran
Contributor
August 16, 2023

Hello @Rupali Choudhari 

 

It is also possible to do a regular expression validation in the automation rule. The example would look like this:

email regex.png


This way you can know if it does not contain the internal domain and thus be able to make the transition.

I hope you found it useful.

Greetings, Jose Juan

Rupali Choudhari
Contributor
August 16, 2023

Thank you for the help it worked.

2 votes
Answer accepted
Florian Bonniec
Community Champion
August 16, 2023

Hi @Rupali Choudhari 

 

Have you try an advanced compare on

 

{{issue.comments.last.author.emailAddress.substringAfter("@")}}

or

{{comment.author.emailAddress.substringAfter("@")}}

Regards

Rupali Choudhari
Contributor
August 16, 2023

Thank you for help.

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