Forums

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

Blocking emails using Automation in Jira Service Desk

Rod McWilliams
Contributor
September 3, 2020

Hello,

I'm looking for some guidance in Automation creating the specific code I need to block all gmail, yahoo, hotmail emails from creating new tickets in JSD. Because of the way our Service Desk operates, I need the "Anyone can send a request without logging in" option activated. The overwhelming number of the jobs we manage originate with people with government emails (e.g. - .gov or .gov.au) and we don't want those blocked. Just the others.

So, if I cannot prevent the issues from being created - I want to divert/delete them immediately so our teams are not being inundated with spammy emails as issues.

I've started to create a new automation and I'm stuck knowing what action/code to apply to "IF" statement that will block all those pesky emails coming from the addresses noted above. Is it best using the field Initiator or Reporter?

I hope that 's clear enough. Any ideas???

cheers

Rod

 

1 answer

1 accepted

1 vote
Answer accepted
Jane Yeoh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 8, 2020

Hi Rod,

Thanks for reaching out. Yes, this is possible - your rule (very simply) would look something like this:

Using the Advanced compare condition, you could check to see if the initiator's email address contains a certain email domain, and automatically deletes the issue.

Screen Shot 2020-09-09 at 10.57.03 am.png

Hope that helps. Feel free to reach out again if you need any more help with this.

Cheers,

Jane

Rod McWilliams
Contributor
October 14, 2020

Hi,

While this answer help and works with emails that specifically have gmail.com or yahoo.com as the email domain, I overlooked the need to specify even further.

I now want to narrow this option to any @.com email domains.

So, I simply changed the "compare two values" rule to ".com".

However, it not capturing them.

Could you advise what I need to enter to them all? Additionally, if I want capture other email domains like @.co.uk or @.com.au, how do I separate these in the rule? Is it ".com", ".co.uk" or is it something else?

cheers

Rod McWilliams

Suggest an answer

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

Atlassian Community Events