Automation failing for webhook

Bhargav Bhatt June 21, 2021

Hi Team,

 

I have done automation using incoming webhook.

 

Scenario : We have setup monitoring alerts for our system. issue is we get type of alert

1) on failure of service

2) on recovery of the service

So, Got Jira ticket created for Failure of service using incoming webhook.

But when I receive recovery request. I want to update the same ticket which was raise early for failure. 

Currently, It is creating 2 different tickets in the project. (one for failure and one for recovery)

Can anyone help me ?

jira.pngjira1.png

Regards

Bhargav Bhatt

 

 

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 21, 2021

Hi @Bhargav Bhatt  -- Welcome to the Atlassian Community!

To do what you ask, you will need some matching piece of information between the two incoming webhook triggers, like a "correlation id". 

When you have that correlation id from the failure service notification, you may create the initial Jira issue with that value in a field, such as a custom field for the value.  When the recovery comes in, you may use a branch on JQL to select the appropriate Jira issue for update.

As a precaution you may want a second rule with a scheduled trigger on JQL, checking for any "orphaned" failure service notifications which have not be addressed for a while by a recovery message. 

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer