Email to project - assignee by component

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

We have the single email address like help@company.com (Google Apps) and we got several offices (say in USA and Europe).

I have created the project HELPDESK in JIRA and 2 components like: USA and EUROPE.

I would like to assign tickets from USA employee to USA sysadmin and tickets from EUROPE to another person. So they are component leads in my project.

Anybody know the plugin that can help me to reach my goal?

-----

Standard mail handler: I like that he can use IMAP folders to gather emails from. So I can setup 2 email handlers and in google apps (gmail) create some filters to separate USA employee from europe ones (and lable them). And in handlers grab emails from specific label to create an issue. However standard mail handler can be linked to a project only.

I have investigated JEMH plugin, however I haven't found an easy way to assign it to a component. I don't want users remember directives and put something like "component: USA" in every email. You know it's a crunch and easy to forget about that.

Idially I'd like to combine the standard Email Handler (IMAP Folders option) with JEMH (assign issues to component leader). Any options?

Thanks in advance

4 answers

1 accepted

1 vote
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2012

No, the legacy configuration file supports only a subset of prior functionality, no new functionality and won't ever be extended. In its current form, it's expected to only be usable in 'unlicensed' mode but I broke it during RC when forward email configuration was pulled into JEMH, I have yet to fix it, but is on my short list to fix.

The Project Mapping features in JEMH 1.0+ were specifically implemented to address mapping sender domain/addressee to specific project components, based on the scenario you presented. You will need the UI in order to do that.

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2012

Ok thanks for explanation, I will mark your answer as accepted as you plugin now supports the functionality I was looking for

0 votes
Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

Hi all I'm able to solve my question with the help of

* Out of the box jira mail handler

* Script runner plugin and custom-written groovy script

* Changing workflow and adding post function on creation step.

You may find useful to see how to achive that in details here:

http://alexsuslin.github.com/blog/2012/03/23/help-desk-with-jira-via-emails/

I have written a blog post about that.

Hope that helps,

Thank you

0 votes
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

BTW, with JEMH 1.0, and Project Mapping, you could use a regexp to map specific to/from domain addresses to specific projects/components. I've not thought of doing that just for component filling but I don't see why it wouldn't work.

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

I don't need the project mapping as I have single project HELPDESK. I don't need specific to / from. "To" will be always the single email "helpdesk@company.com" and from may be one of the our employee (~150 different email addresses). And how that helps me to assign issue to a component without having component derective in email itself?

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Are you 150 email addresses of a common domain, or split over many countries? How many domains are we talking about?

The Project Mapping stuff can be applied to email addresses at domain level, and can determin a project, component and assignee (whether that assignee is the component owner or not). This route would naturally result in n mappings, for the number of domains you have. Of course, if you have a single domain, that wont work, and you'll need some other way to differentiate, eg groups.

The Project Mappings in JEMH can also route messages based on the JIRA group membership, so all 'US' group members would get funnelled into component X. Combining the two isnt something Ive tried yet, adding a wildcard project mapping after a gorup mapping would achieve what you are trying to do, something I should look at as its just a logic issue as to which one goes first.

Let me know if you want to pursue/test.

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

We're talking about single domain. Thanks for the idea about people grouping, I'll dig that and will try to test and let you know if it works.

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Andy could you please point me in documentation how to setup routing issues to a component via jira-group? I can't find it on the documentation portal for JEMH. Thanks in advance.

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

Hi Alex, doco is a weakness at the moment, working on it, meantime, for a single group see https://studio.plugins.atlassian.com/wiki/display/JEMH/Routing+issues+to+a+project+-+by+user+group+membership

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

thanks for all your efforts, I'm sort it out without JEMH and my solution totally fit our needs. However I admit that your plugin is great, but unfortunatly don't need it to buy. Wish you all the best and thanks once again for help, ideas and JEMH plugin itself.

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2012

No worries, the idea of mapping within a project to component by group membership or mail domain is a good one I'd thought of, so thanks for that!

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 24, 2012

For anyone not wanting to script their own solution. Mapping of inbound groups (and email to/from) to Project and per-mapping Component now implemented in JEMH, (RC2 out later today) , see doc's https://studio.plugins.atlassian.com/wiki/display/JEMH/Project+Mapping+%28group%29+-+example

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2012

Andy, I've come into a problem with non-jira users, so my script is needed to be enriched or either we'd need to use your plugin... however I need to test it, is it possible to achive that groups assignment without GUI interfece? just don't know the name of fields that needed to be used there (I mean config file)

Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2012

No, all the new mapping features require the UI, sorry.

0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Hi Alex ,

>I would like to assign tickets from USA employee to USA sysadmin and tickets from EUROPE to another person. So they are component leads in my project.

There is a default Post function available in Jira which Assigns the issue to Lead Developer/Component Manager (

Assign to Lead Developer)

.You can use this postfunction on the create transition/step of your workflow. This will automatically assign the issue to the Component lead based on the component selected while creating the issue

However the email will be sent to the same email id.

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

And how determain to which component lead I should assign the ticket?

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

When you select USA as a component while creating the ticket the ticket will be automatically assigned to the Component Lead of USA similarly for component Europe.

And for the email i dont know how but i guess you will have to do something with message rules if you are using outlook .

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Are you trying to create issues via emails ?

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

The question was related to Mail Handler. It is not related to any mail client (like outlook or web interface). The Handler is grabbing the mail directly from the server and creates an issue in JIRA. So if you read the post till the end you found that I can setup email handler to grab issue from the IMAP folder (and in that particular case the folder name is the component in JIRA project). But with postfunctions I have no that information, so the question was how to combine out-of-the box mail handler with the possibility to assign issues to component lead (that can be reached with the help of JEMH plugin).

And yes I'm trying to create issues via email, doesn't that obvios from the subject?

Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 21, 2012

Ok , I thought you want assign the issues automatically to the component lead but the email id is same .

Alex Suslin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 22, 2012

Thanks for the idea, I'm able to figure it out! I am share my solution here on the page.

Suggest an answer

Log in or Sign up to answer