How does JEMH know which project to create an issue for when processing an email?

I have JEMH processing issues from a support email box and using the directive @Project as the 'key' to which project get the associated JIRA issue created. Is this correct? That is, if the JEMH directive in the email is @Project=MyProject then a JIRA issue will be created in the project MyProject? I am using default emh.properties file.

Please advise on how else one could parse an email and determine which project gets the JIRA issue.

Using RHEL 6.3, Jira 4.3.3, JEMH 0.9.7

Thank you.

3 answers

1 accepted

0 votes
Accepted answer

JEMH uses by default the @Projectdirective.

Hi Tony,

If you have @Project=ABC then that should work, with assumptions like the sender address relates to a registered user, or you have a default 'jira' user defined. Really, I have trouble remembering details, its now years since I looked at 0.9.x. From memory, all processors were enabled. Perhaps you enable logging to see whats going on:

https://thepluginpeople.atlassian.net/wiki/display/JEMH/JEMH+Installation+for+Jira+4.x

Classic problems include:

- you arent using JEMH as a mail handler (indicated by @Project=ABC appearing in your issue content)

- default reporter / associated user not having sufficient privileges in the issue (logging will tell more).

FYI 'current' JEMH documentation is only applicable to JIRA 5.x+ compatible releases (pre 5.0 there was no UI, just a monster property file) , documentation for legacy releases are at https://thepluginpeople.atlassian.net/wiki/display/JEMH/Pre+1.0+Content

If the default is not a valid project, the issue will fail to be created, and a rejection notification will be sent to the sender.

After lookig at the logs it appears JEMH can not find the project MyProject and it is going to the deftault project I created called UNKNOWN, although the issue does not get created in the default project UNKNOWN either (so where does it finally 'land' I wonder)?

25357 2013-08-08 08:34:29,409 QuartzWorker-0 DEBUG [jira.emh.engine.IssueCreationHelper] setting up project
25358 2013-08-08 08:34:29,409 QuartzWorker-0 DEBUG [jira.emh.engine.IssueCreationHelper] Looking up project by all possibles :UNKNOWN
25359 2013-08-08 08:34:29,409 QuartzWorker-0 DEBUG [jira.emh.engine.IssueCreationHelper] Using project: UNKNOWN - Project: UNKNOWN

The project MyProject is a clone of an existing project ProdProject. The cloning was done with a scriptrunner process that is recommended by Jira.

What could possible cause MyProject not to get issues created? What are the issues when cloning a project that may cause these (or other) problems? And where does the issue 'land' if it cannot be created in the default (UNKNOWN) project?

Thanks.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

61 views 4 0
View post

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