Create an issue from e-mail and description field got detailed HTML coding

We currently have a project using JEMH plugin to create issues from e-mail, all works fine.

Now I need to create a new project to create issues from e-mail as well. So I setup new mail server and service, use the same as current project and make up an e-mail from some of the custom fields in the current projects. I did then received the created issue notification from Jira, but the description field has html detailed coding in it, also the custom fields are not save to the database?

4 answers

1 accepted

0 votes
Answer accepted

Your email _must_ currently be either (a) "text/plain" content email or (b) be mime multipart with a "text/plain" alternative content payload.

Parsing HTML only emails is not yet supported, please watch

Thanks, it works. By the way, when create issue from the e-mail, I want to change the description to include the message, e.g. "this is created from DEV", do you know how to do that?

Andy, I enabled indicateSourcedByEmailHeader=true in file but why I could not get the following in the description of the created issue.

[Created via e-mail from: ""]

Thanks for your help

That flag adds the banner you show. Not sure what 'DEV' is, can you expand?

You can also indicate the Field Processor used to deliver the message: #indicateWhichProcessorProcessedMail=true

Thanks, Andy. I was expecting to see the banner but I could not see it. I use the same from the existing project and the issues created in that project did have the above banner, so I wonder why I did not get one.

DEV is for development evironment, I was wondering if I can add some helpful information to the description/comment field before it is saved to the issue.

e.g. if I have the following e-mail sent to our existing project:


***this is created via web application***More details

I got the following in the created issue (description field)

[Created via e-mail from: ""]

 .this is created via web application***More details

But if I use the above e-mail in my new project:


***this is created via web application***More details

I got the following without the banner:

***this is created via web application***More details

I also noticed that the content is a bit different, my new project just copy what ever is on the email include the first three characters "***", but the existing project seems removed the first three characters "***" and add something else, I don't know how to do it. The existing project was setup by other people who already left the company, I have no idea why the two projects got different responds as they have the same file?


Please set content type to "text/text" of the email.


Deepak Bhatia

a nice idea but this won't help, you'll just get lots of XHTML in the issue, which is surely not the intent.

Hi Andy, But in my case, it worked as I am sending email from the web site written by us. When I selected the content of the email as 'text/text', it worked.

Sure, so long as the _content_ is just plain text, that would work, in the example above, not so much :)

I added defaultCF default values to file and the values appeared correctly in the created issue.

But why it didn't pickup the values from the e-mail? e.g. @test case=case1 (where test case is the custom field name).

Anyone can give me some idea?

I expected to have descrption field, e.g.

[Created via e-mail from: "" <>]

Created via the Datafeed Support web page ***
Details (from e-mail)

instead I got the following in the descrition field:

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="" xmlns=""><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
a:link, span.MsoHyperlink
a:visited, span.MsoHyperlinkFollowed
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:black'>@reporter=ttswjx<o:p></o:p></span></p><p class=MsoNormal><span style='color:black'>@project=TEST1<o:p></o:p></span></p><p class=MsoNormal><span

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


165 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