I need to stop this behaviour when a user replies to an email notification to add a comment, there is no need to copy all old message body to the new comment, I'm trying o use Regex Comment Handler to do so, but I can not use it with create or comment issue handler, I need both create and comment!
Regex should be able o create new issues not only comment, is there any solution?
If your only requirement is to strip content 'replied to', then the default create or comment handler should allow you to do so. See the 'Strip Quotes' reference is on http://confluence.atlassian.com/display/JIRA/Creating+Issues+and+Comments+from+Email
And we need to make sure that the (outlook-email.translations) file found at:
has the email quote separator to check for (e.g ----- origional message ----- ) or any, and that outlook is adding this text when forwording/replying to email message in order for the strip quotes to work in JIRA. for my case I have defined a custom separator and define it in the outlook-email.translations file.
If you're looking for a more comprehensive regexp to strip replies, we use this:
/From: *|___.*|On .*wrote:|----Orig.*|On .*(JIRA).*/
I've found this gets most mail clients (including Outlook PC/Mac, Outlook Web Access, iPhone, others...)
We're an OnDemand customer so every morning we have to check to make sure the default mail handler hasn't reverted back to the standard Studio Email Handler and if so, re-edit it with the above settings. There doesn't seem to be a way to define our own handler without the default one getting in the way.
Can anyone confirm if "On .*wrote:" section of this regex pattern actually works?
I'm sending email from gmail and it comes through with On... wrote: but it's not getting caught with this regex pattern.
I've tried testing with just /On .*wrote:/ and that doesn't work either. The only way I can get it to work is with /On/ which obviously is not going to be practical.
I find it strange because On .*wrote: wouldn't normally match anything as it appears invalid. I would have thought you would need a word boundary like On\s.*\bwrote\b.*
But JIRA just spits the dummy at this, I'm guess it can't handle any escapped chars. I can't really seem to work out what regex engine it's using.
If anyone could confirm how they are handling gmail or if they have this working for gmail it would be greatly appreciated?
I'm having this issue as well.. it seems that the simple strip quotes function only strips lines that start with | or >, which is not the way our mail client does replies. So, we too are left having to use the regex handler to strip everything below a certain regex... But I'm thinking that means we have to stop using the "CreateOrCommentHandler" and start using 2 handlers, the "CreateIssueHandler" and the "RegexCommentHandler"
The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...
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!
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