How do I parse email into custom fields?

Tony Brisciani November 16, 2015

I have an external job system that emails jobs through to JIRA in the following format.

Created by: username
Reported by: username
Date logged: 10/22/2015 11:41:11 PM UTC
External Incident # 14734

Summary: text field
Details: large text field

I want to get JIRA to read the content of these emails and update custom fields in JIRA with the content above. Unfortunately I am not so good with coding custom handlers so I was wondering what other methods you would suggest to do this? I was hoping it could be done in workflow using the update custom fields, but there doesnt seem to be any way to read the email content. 

Thanks in advance!

2 answers

2 votes
Attila Gaspar [META-INF] November 16, 2015

Hi Tony,

You can also check the JETI (JIRA E-mail This Issue) addon.

https://marketplace.atlassian.com/plugins/com.metainf.jira.plugin.emailissue

And you can find here a manual, so I think you can do it without coding deeply custom mail handlers.

http://www.meta-inf.hu/wiki/display/PLUG/Field+Contexts

Field Contexts contain Field Rules that:

  • Initialize issue fields when a new issue is created from email
  • Initialize issue fields when an existing issue is affected by the email

BR: Attila

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 16, 2015

You're going to need code, no matter what the approach.  If you don't do "parse body of email and set up emails" in the handler, you'll need something that will detect "issue created" and manipulate it later (I wouldn't try the workflow, I'd use a listener)

But, your best bet might simply be JEMH - this is one of the use cases it was written for - https://marketplace.atlassian.com/plugins/com.javahollic.jira.jemh-ui

Suggest an answer

Log in or Sign up to answer