Mail handler not creating all Tickets

Hi All,

I have a bit of a puzzler with the way the Mail Handler works (i'm using JEMH on JIRA 4.4.4). 99% of the time it is great and works as expected. The problem is occuring when an email is getting sent that also refers to another JIRA project.

For Example. We have 2 projects - SUPPORT and DEV. If an email is sent to the SUPPORT mailbox with the subject "Need new VM, see DEV-100 for details", the ticket will not be created, seemingly because of the reference to the DEV project. What is the reason behind this? Is it a setting I have chosen mistakenly? The Mailbox should only create tickets for the SUPPORT project, so I would of thought it would ignore the DEV link. It would be fantastic if it created the ticket AND linked it to the DEV-100 ticket, but thats undeeded at this stage, just ticket creation to start with!

Sorry if that was unclear

1 answer

1 accepted

0 votes
Accepted answer

Hi Duncan,

The default behaviour for Create or Comment handlers is to scan the subject for an issue key, this is done by regular expression, hence why DEV-100 'becomes' the issue to comment on, or at least, how JEMH does it.

A solution to this would be to provide a user configurable regexp for the key, such that for example 'JIRA (ABC-123)' would not be mistaken for 'See DEV-100 for details'. There is going to nothing I can do for 4.4 though, you'll have to do a little bit of tidy up under those situations...

Prompted by this, I'm just externalising the default regexp in 1.2.x. I like the idea of auto linking on 'mentioned' issue keys without having to use directives, I'll post a FR.

Thanks Andy, I thought this was the case, just wanted to confirm. Feel free to use the idea, I hadnt even considered it before I was writing up the question, and would be a rather cool feature to have

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,196 views 5 10
Read article

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