Email-Handler imports only first line


we have a Problem with the Email-Handler "Create a new issue or add a comment to an existing issue". If Jira receives a mail - a valid Issue-Id noticed in subject - wich is sent by the customers HP-QC instance, it is only the first line imported as a comment.

I've found two alternative Content-Types (text/html and text/plain) in the Email-Source. I tried other Handlers with no or same effect.

Any ideas?


Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Defect Benachrichtigung

_____ =20


Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><TABLE width =3D 100%><TR><TD><H2>Defect Benachr=

2 answers

1 accepted

1 vote
Answer accepted

You say you are using the "Create a new issue or add a comment to an existing issue" handler, do you have the "strip quotes" checked?

Yes, "strip quotes" is enabled. My expectation is that only the lines that start with ">" are removed.
Is "_____ = 20" a termination criterion?

Not the full line, but I think 4 or more hyphens or line-scores is seen as a new line.

You can try disabling that to verify, but you would get all previous comments in a thread. You can also choose "

Add a comment before a specified marker or separator in the email body

and define your own regexp for the seperation (but I am not sure this will create new issues), or you can create a custom "Client ALM Handler"

I've disabled "strip quotes" now and the Mailhandler is working now.

Thank you!

Im pretty sure you see this because _____ is listed in JIRA_INST/atlassian-jira/WEB-INF/classes/outlook-email.translations, which identifies a range of default 'included' message delimiters. The solution here would be not not add that to your email, if you remove it, what happens?

The email format is set by the customer. Would it be a solution to modify the translation?

I would not modify except as a last resort, because you will need to repeat anytime you upgrade.

? Just go and edit the file above, remove that line, should fix this for you (but obviously wont then match other email), if you need that for some email but not others, perhaps you need something more that the default handlers...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

524 views 1 14
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