Any exist solution to parse html email by some lib from incoming emails

Gonchik Tsymzhitov Community Champion Jun 21, 2017

Hi! 

I know JEMH is cool, but we have a one of own legacy mail handler, with a big logic.

Anybody knows some solution for parse html email to wiki format for jira. 

My aim is good formatting, 

 

Thank you.

 

Gonchik Tsymzhitov

1 answer

1 accepted

Did you know that JEMH has pluggable Field Processor API's that you can implement your own 'big logic' part?  Then, you'd get the inline image support / HTML tag conversions, body cleanup (removal) and signature reply-to removals that JEMH did already?

Beyond that, you'll have to write a HTML parser that does the conversion, there is no open source library I know of that will do the conversion to wiki markup for you.

Gonchik Tsymzhitov Community Champion Jul 10, 2017

It sounds a perfect, 

but for use Processor API, I need to pay? Is it correct?

 

Thanks

Yes, JEMH would need to be licensed.  you would be creating an Addon for JEMH, that contains your handers processing code.  In a JEMH Profile configuration, you pick it as a 3rd part Field Processor, it gets the post html-wiki converted text and can then extracted through your big logic, any values that you need to set in custom fields etc.  Output of such a Field Processor module is a Map of found keys/values (ie your logic is just concerned about 'extracting' the data, not manipulating JIRA issues etc.

Andy,

what do you think to use JIRA bundle from JIRA Service Desk?

Atlassian-Plugin-Key
com.atlassian.jira.jira-email-processor-plugin
Bundle-Name
jira-email-processor-plugin
Bundle-SymbolicName
com.atlassian.jira.jira-email-processor-plugin


Thanks for your advice.
You get me a good idea.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

49 views 0 4
Read article

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