Is there anyway to only include the reply part of emails to a comment?

Billy Byrne August 27, 2018

I have a Mail handler created that is setup for "Create a new issue or add a comment to an existing issue".

 

The create new issue is perfect however when a reply is giving via email, the comment includes ALL of the email instead of just the reply. Is there anyway to only get the reply into the comment of the email?

 

 

1 answer

1 accepted

1 vote
Answer accepted
Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2018

Hi Billy,

Are you seeing previous comments in quotes paragraph? If so, you can set the mail handler to strip quotes in Edit Mail Handler > Next > Tick Strip Quotes.

Feel free to have a read of this documentation here: Custom mail handler options.

 

Hope this helps.

Cheers,

Syauqi

Billy Byrne August 28, 2018

Ahmad,

I have that checkbox checked already but I am still seeing this. Should I be looking into the Split Regex? I do not see that option though.

 

JiraStripQuotes.PNG

Billy Byrne August 28, 2018

JiraComments.PNG

Syauqi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2018

Regex is only possible for the Add a comment before a specified marker or seperate in the email body email handler:

Screen Shot on 2018-08-29 at 9.46.43 AM.png

I've tested the regex below and it seems to truncate the first "From" that it sees until the end of the body and you'll get string before it added as a comment in the issue.

 

Screen Shot on 2018-08-29 at 10.10.44 AM.png

Hope this helps!

Suggest an answer

Log in or Sign up to answer