Hi Atlassian Community,
I’m currently facing an issue with the Mail Handler in Jira Service Management (JSM) and need some guidance. We have an email address integrated with JSM that receives two types of alerts from our monitoring system:
The current behavior:
Desired outcome:
Additional context:
My questions:
1. Do I need to make any specific changes to the Mail Handler settings to prevent duplicate ticket creation when the Resolved alert comes in?
2. How can I set up an automation rule that identifies the existing ticket based on the email subject or unique identifier in the email body and updates it instead of creating a new ticket?
3. Are there any best practices for setting up email-based incident creation and resolution in JSM to handle this type of scenario efficiently?
I’d appreciate any step-by-step guidance or examples on how to configure the mail handler and set up the automation rules. Thanks in advance for your help—I’m looking forward to your suggestions!
Hello Leonardo, how are you?
First, it’s important to check which Mail Handler Type was configured.
For your case, a suitable option would be "Create a New Issue or Add a Comment to an Existing Issue."
However, there’s a key point regarding this setup.
If the email indicating that your alert has been resolved is a standalone email and not a reply to the original alert, this solution will indeed not work as expected.
IIn this case, it will be necessary to create a new Mail Handler that converts emails into comments.
In it, we can configure:
Configure the Mail Handler to identify existing tickets based on a specific pattern in the email subject.
In your case, the "Triggered" and "Resolved" alerts follow a consistent pattern, such as ALERT: [Service Name]. Use this pattern to map the incoming email to the corresponding ticket.
Ensure that the Mail Handler is set up to:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.