Hi,
I try to create a ticket in JIRA using PRTG alerts. For that I am using the "Mail Handler" and I use the "Create a new issue or add a comment to an existing issue" option. It works fine for creating the ticket but for adding a comment I have a problem.
When I have an alert in PRTG that a sensor is down, it will create an email with a subject of the description of the alert and this email will be handled by JIRA and it will create an issue with an issue key. But when the sensor is then up, it will also create an email and JIRA will create another issue.
What I am trying to do is to get the issue key created when the sensor was down and add it to the email subject when the sensor goes up so that "Mail Handler" can add a comment instead of creating a new issue.
Here is an example:
I get this alert:
"ALERT: sensor 125 down" --> It then creates an issue in JIRA with issue key: AL-4
I then get another alert:
"ALERT: sensor 125 up" --> It creates another issue in JIRA with issue key: AL-5
And I want to create this email subject:
"ALERT: sensor 125 up - AL-4" --> So that the Mail Handler detect the issue key and add a comment instead of creating a new issue.
Any ideas how I could do that or if it is even possible ?
Hi @[deleted] ,
in order to have a comment instead of new ticket you need to add your issue key in the email subject. If exists, email will be entered as comment otherwise a new ticket will be created.
If you need a custom mail handler that check issue existing based on subject/summary you can develop a custom mail handler.
Hope this helps,
Fabio
Hi @Fabio Racobaldo _Catworkx_ ,
Thank you for your response.
I just wanted to try to avoid using a custom mail handler since I don't know anything about it and I'm not very comfortable with development. I was hoping there was another solution so I guess I'll try something else.
Julien
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.