How can I catch emails sent to Jira and then create or update issues from that email?

ScriptRunner comes with a custom mail handler feature that lets you run a script when you receive an email into your Jira servers inbound mail server. You can use the Mail Handler feature to trigger when an email comes from specified email addresses using the Catch Email field or have it run the script for all emails received.

This feature is very powerful as you can use the script to perform many actions, including creating an issue based on data within a received email. Please see the guide example here for more information, and you can also refer to our Adaptavist Script Library for further examples of Mail Handler scripts here.