Is there a way to have JIRA strip attachments from incoming email?

We are utilizing some mailboxes for JIRA to update tickets, the problem is the dozens and dozens of small attachments from users sig files are all getting added to the issue as well. I can find no way to prevent this without turning off attachments entirely.

Is there a way within JIRA to solve this?

6 answers

I have not, the mail handling in JIRA is fairly immature. It really seems like there should be a 'allow attachments y/n' button in the mail handler configs.

0 votes
Pedro Souza Atlassian Team Apr 02, 2014

Hello,

Yes it's possible.

it would be to configure an 'Add a comment before a specified marker or separator in the email body' mail handler:

On the Create a new issue or add a comment to an existing issue dialog box, complete the following fields/options:

Split Regex:

Specify a regular expression matching the text that separates the content of the email message mail body from the signature content in the body.

For example:

/----\s*Original Message\s*----/

or



/_____________*/

Please Note:

  • The regex must begin and end with a delimiter character, typically '/'.
  • Commas are not allowed in a regex, as they are used to separate each mail handler field/option when they are integrated into a JIRA service and there is not (as yet) an escape syntax.

More of this subject on this documentation

I holpe it helps!

Cheers,

Pedro Souza.

I am a bit uncertain how this can be used to prevent attachments from being processed. I had reviewed that documentation prior to the question.

Not all sig files start the same way...

This method seems to work to strip out old contents from the email thread but it does not prevent attachments from make it to the work item.

What Carlos said is true, this usually chops out the excess in a reply chain, but all attachments still wind up on the issue. Sometimes, the same sig file attachments show up dozens of times each, once for every time someone replies to the chain with the sig images in it.

Derek, I'm having the same problem. Did you find a solution?

Hi @Derek Sheeman

Did you ever manage to get feedback on this?  Is there a plugin that perhaps allows one to do this?

Thanks

 

I have never found a solution to this, it plagues us to this day.

While we understand that the answer does not address Derek's question, we also think that removing the posted response is not ideal as it might indirectly resolve other's customers issues as the procedure is completely valid to strip mail quotes and signatures.

Being a community forum, Atlassian Answers provides anyone to set a response as not useful by simply downvoting it. That way, customers with the same question will see that the provided response is not useful at all. Please feel free to add your comments to the topic and downvote it, as I already did.

If I can be of any further assistance, please, let me know.
Kind Regards,
Paulo
Atlassian Support

Now I'm curious, after 3 years, what prompted this response?  It adds nothing to the thread.

 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot