How do I parse email into custom fields?

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

1 vote

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,247 views 2 7
Join discussion

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