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
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.
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot