commenting issues through emails

Pepe November 2, 2012

When somebody replies to a notification mail that was generated by assigning him an issue, this reply gets added to that issue as a comment. That's OK, we want that to happen.

But the problem is that the whole reply is included in this comment, even the quoted part with the text that is already in the issue description.

How can we avoid that and setup that only what a user writes in reply email is entered as a comment?

P.S. Many other systems have such a feature enabled, they put a line in the email with some identifier and saying reply above this line.

2 answers

1 accepted

2 votes
Answer accepted
Andy Brook [Plugin People]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2012

Have you enabled 'stripQuotes' as referred:

https://confluence.atlassian.com/display/JIRA/Creating+Issues+and+Comments+from+Email

Earlier questions:

https://answers.atlassian.com/questions/40872/jira-create-or-comment-issue-handler-with-regex-filter-on-the-reply-forward-message-operation

If that doesn't work there is the Regexp Comment Handler

https://answers.atlassian.com/questions/54911/jira-comments-from-email

And failing all that, there is also JEMH that can does the body delimitig as well.

Pepe November 3, 2012

Yes strip quotes is enabled, but the problem is that not all mail clients put quotation in the email reply.

The soultion I found that works is:

  • edit global configuration so that sent notification emails have something "strong" and parsable in the line before the quote. For example "On 04.12.201. (JIRA-NOTIFICATION) wrote:"
  • in mail handler configuration add handler "Add a comment before a specified marker or separator in the email body" and setup the apropriate regex
  • and just for safety, leave turned on the default mail handler in case the regex one misses something. But make sure that the default handler comes last in the list of mail handlers

So this is exactly like in the link you suggested:

https://answers.atlassian.com/questions/54911/jira-comments-from-email

Thx.

Jeff Fairchild November 4, 2012

Adding a comment to an existing issue via email doesn't work on OnDemand:

https://jira.atlassian.com/browse/JRA-30293

Pepe November 4, 2012

@Jeff: for me it does. checked and verified, it works.

0 votes
Kenric November 7, 2012

I already have stripe quotes turned on, but I the users that have iphone are still posting the entire original content of the jira ticket,

what command handler can be used to fix this?

thanks

Pepe November 7, 2012

Look at my comment above.

Suggest an answer

Log in or Sign up to answer