Open issues only from a specific set of emails

Hi everybody,

I have a jira project with a mail handler.

We use an internal plugin mail handler that store the "from" email addres in a custom field called "email sender".

Now I want to ad a validador that let the issue open only if the email sender is in a set of a specific email addres.

So I add a validator with a regular expression but this work only for a single email addres.

If I put in the regular expression for example only chiarasquilloni@yahoo.it the issue is opend but if I put [chiarasquilloni@yahoo.it,chiara.squilloni@gmail.com] the issue arent' opend.

Can someone please help me?

Thanks in advace!

2 answers

1 accepted

This widget could not be displayed.

I found myself a solution.

In the workflow in the transition "open" I add a validator:

ScriptRunner workflow function - Simple scripted validator (condition apply).

cfValues['Email Sender'] == 'chiara.squilloni@gmail.com' || 
cfValues['Email Sender'] == 'chiarasquilloni@yahoo.it' 

Awesome.  Thanks for letting us know!

This widget could not be displayed.

Hi Chiara,

I believe the reason this is not working is because it's looking for Java Regex:

Validate field contents against a regular expression during a workflow transition.

A strictly email option would be to have your email server filter out the addresses that are allowed to create tickets and forward those to JIRA and block any other emails from being sent to JIRA.

In JIRA you may be able to only provide permissions for the users you want to open issues for that project and then use the Permission Validator to make sure it's one of those users.

Let me know if that makes sense.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

156 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you