How to automagically delete attachments of a certain size and type (i.e. an email logo) in SD?

So I'm throwing this out there to see what the best suggestions would be, and as much detail as you feel like giving would be great. 

I have access to Scriptrunner, JEMH and Automation for JIRA but NOT the CLI for JIRA. 

This is for Service Desk projects - I already have a boatload of things blacklisted with JEMH for regular projects, but that won't work for Service Desk.

We have no less than 7 small files that are attached to every email, so every issue that is created via email in a SD project also has 7 small attachments, as well as every reply and so forth. I've seen upwards of 50 attachments in a single issue from this, which is ridiculous.

I need to be able to remove or prevent the attachment of *these specific attachments*, without wholesale removing all the attachments, since folks may have attachments they actually need in the issue.

1 answer

Hello Maya,

This is for Service Desk projects - I already have a boatload of things blacklisted with JEMH for regular projects, but that won't work for Service Desk.

JEMH should be able to blacklist any attachment from being added to issues via email, as long as it knows what to look for.

Information on blacklisting attachments can be found on the JEMH wiki: How Do I Use Blacklisting.

Attachments can be blacklisted via a few criteria, such file extension/name, size, MIME file type, and MD5 fingerprint. File extension/name and MD5 fingerprint are the most specific so are probably best for your scenario.

If the attachment file names are ones that will only ever want to be blacklisted, you will probably just want to blacklist by the file name as per the wiki.

MD5 fingerprint blacklisting is as specific as an attachment blacklist can get. If a recurring attachment is always exactly the same file down to the byte, then this is the type to add.

If you need more specific help, open a support ticket here along with any supporting examples: The Plugin People Support

Mike

Hi Mike,

I have over 140 attachments blacklisted by size/file type, and that catches most of the signature attachments for the regular projects, but not for the Service Desk ones.

We've been using Installed version: 2.0.32, but I just updated to 2.0.36. If that doesn't help, I'll open a ticket with The Plugin People Support.

Thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

182 views 0 4
Read article

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