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: 

Spam : automation flagging for certain keywords

DBooher
Contributor
April 21, 2025

Hi, we get a lot of spam and I'm not having successes with setting up an automation rule to [1 : assign work item to a user] and [2 : add internal note "suspected spam]. The problem is with the filtering stage I think. 

Is there an all code version of the automation function instead of using the flowcharts?

What I want to do: When work item created, If email address from domains A.com or B.com, OR If the text anywhere contains keywords BuySpamNow or SpamKeyWord, add an internal note and assign it to User. 

Thanks for any insights

temp.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 21, 2025

Hey @DBooher

Welcome to Atlassian Community!

 

I believe only using {{issue.fields}} will not work as expected. You'll have to specify which field(s) should be compared.

For example, you can write {{issue.summary}} contains "Spam" to check if the sumary contains the word Spam.

If you want to validate this for multiple fields, you can use the If/Else block to add multiple conditions and specify the AND/OR logic.

2025-04-21_19-35-15.png

 

Thanks!

DBooher
Contributor
April 24, 2025

Hi Karan! 

 

I've had a chance to test it and today the automation successfully flagged its first offending issue! Note was automated, issue assigned to me, then email was sent to me. 

Now if I can automate add email to blocklist and then delete issue, it would truly be perfect

Thank you!

temp.png

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events