Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

trigger automation rule by incoming mail handler

Ward Schwillens_ Schwillie
Contributor
November 4, 2025

Hi There, 👋

 

I have a (manually triggered) automation that is deleting attachments from a work item if the mimetype is an image type 🖼️ and the filesize is less than 10kb (10000 bytes).

automation rule delete small image attachments.png

Could this rule be triggered by the incoming mail handler when it creates the attachment?

Thank you for your insights! 🙏

1 answer

0 votes
Christos Markoulatos
Community Champion
November 4, 2025

Hey @Ward Schwillens_ Schwillie 

I believe you can achieve this by changing the trigger from “Manually triggered” to an event that occurs when the mail handler finishes creating or updating the issue, because Jira Automation doesn’t fire directly on mail processing but on issue events. I would approach this using Issue created for new emails and Issue commented for replies, then branch over {{attachment}} and apply your size and MIME checks before deleting the file, this way any attachment added via email will be processed automatically without requiring manual execution. haven't tried though 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events