Forums

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

JIRA - Creating Issues and Comments from Email

Mirek
Community Champion
February 29, 2012

Hi,

I have two simple questions..

First..

Imagine that kind of scenario... I have two projects with 5 issue types. I want catch all emails from those projects to JIRA. Can someboody can help me understand the process? Basically how is this working in practice?

Do I need to have 2 POP servers and 10 services added for each issue type? Or maybe 10 maiboxes for every issue type and 10 services? How JIRA can handle this? Is this possible to set up?

And the second question..

If I have one project and 5 issue types and I will specify 1 POP server and one Create/Comment Handler for one issue type what will happen when I will replay via mail on other issue that is set in the service? Does JIRA will handle this and add new comment to appopriate issue?

Thank you very much for your suggestions!

Thanks,

Mirek

2 answers

1 accepted

1 vote
Answer accepted
Renjith Pillai
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.
February 29, 2012

You can use JEMH for using a single mailbox for different projects and issue types. If that is not a possiblity you need to have 10 mailboxes for each issue type. I am not sure why you mentioned 2 POP servers? All your 10 mailboxes can be from the same POP server.

And regarding your second question, yes Jira will add the comment to appropriate issue even if you reply to the mail-id configured for another project, provided you have the Jira id in the subject line.

Mirek
Community Champion
March 1, 2012

Thanks Renjith!

I think I can imagine this now ..

When I was saing POP server I haved in mind different username used to authenticate POP / IMAP account.

I think that the best way to learn is to go trought the example. Please correct me if I am wrong

POP Server settings:

Name: Test POP Server

Host: tst.xyz.com

Username: Testuser

Service settings for project - ABCXYZ:

usessl: No SSL
popserver: Test POP Server
handler.params: project=ABCXYZ, issuetype=3
forwardEmail: forwardmail@abcxyz.com
handler: Create Or Comment Handler

And I assume that I cannot do something like this now:

Service settings for project - XXOODD:

usessl: No SSL
popserver: Test POP Server
handler.params: project=XXOODD, issuetype=2
forwardEmail: forwardmail@abcxyz.com
handler: Create Or Comment Handler

to handle mails using the same username .. or the same project ABCXYZ but different issue type:

usessl: No SSL
popserver: Test POP Server
handler.params: project=ABCXYZ, issuetype=43
forwardEmail: forwardmail@abcxyz.com
handler: Create Or Comment Handler

To fix this I need to create new POP Server settings with different username like this:

Name: Test POP Server 2

Host: tst.xyz.com

Username: NewUsername

and then apply to the second service..

usessl: No SSL
popserver: Test POP Server 2
handler.params: project=ABCXYZ, issuetype=43
forwardEmail: forwardmail@abcxyz.com
handler: Create Or Comment Handler

Is this correct?

Renjith Pillai
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 1, 2012

Yes, right.

Dieter
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 1, 2012
You could even use the standard mail handler if your mailing system supports rules to move your incoming emails to subfolders depending on some keyword in the subject or body. MS Exchange is very powerful in this regard and you should use the possibilites to minimize complexity on the Jira side
0 votes
Walt Fles February 29, 2012

Using the "10" sounds like the easiest solution unless you install an enhanced mail handler.

The existing Create/Comment Handler can only at best set the issuetype in the service.

For your second question, you are correct that Jira will use the reply email as a comment.

Suggest an answer

Log in or Sign up to answer