Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Regexp mail handler doesn't separate the content of the email message

Hi there!

Our Jira server sccessfully registers new issue comment from email. We have corporate standard to use personal decription in email. Such as

Best regards,
Ivan Ivanov
Senior accounter
tel. +7 555 555 55 55

And this decription are added to issue comment. We want to exclude anything from comment after separator "Best regards".

We've added Regexp mail handler with Split Regex param =
/(best(\s+)regards)|(_________*)|(-----\s.*?\s-----)/i

But this doesn't work, description are added to comment still.
When we use separator "__________________", description are sccessfully excluded from comment.

__________________
Best regards,
Ivan Ivanov
Senior accounter
tel. +7 555 555 55 55

What regex we should use for separator "Best regards"?

2 answers

Hi

What about if you add the final comma to the regex expr?

EDIT:

/(Best(\s+)regards.*)|(_________*)|(-----\s.*?\s-----)/i

 


Does it work?
Regards

Hi Jack.

Thank you for your reply. It doesn't work. Because commas aren't allowed in Split Regex param.

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

I've edited my suggestion, could you try again with this new one?

Nope, new regex doesn't work. Entire email body is added in issue comment.

Hi Jack.

Thank you for your reply. It doesn't work. Because commas aren't allowed in Split Regex param.

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,528 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you