Close an incident when all the linked incidents are closed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Close an incident when all the linked incidents are closed

L1 Bithead

Hi,

 

I want to be able to close an incident when all the linked incidents (child incidents) are closed. Is there a way to achieve this without having to run a post processing script for each linked incident? Post processing scripts introduce a race condition when two automations check each other out for status at the same time.

1 accepted solution

Accepted Solutions

L3 Networker

Hi @lordstark – A post-processing script would've been my first suggestion for your use case. To deal with the risk of a race condition, you could use the Demisto Lock integration (call demisto-lock-get and demisto-lock-release within the script) so only one incident's post-processing script can perform the check at a time.

 

If that approach doesn't work, another idea is to periodically run a job to check the incidents and close them when all of their linked incidents are closed. However, a post-processing script would be preferable because it would be much more timely and efficient.

View solution in original post

1 REPLY 1

L3 Networker

Hi @lordstark – A post-processing script would've been my first suggestion for your use case. To deal with the risk of a race condition, you could use the Demisto Lock integration (call demisto-lock-get and demisto-lock-release within the script) so only one incident's post-processing script can perform the check at a time.

 

If that approach doesn't work, another idea is to periodically run a job to check the incidents and close them when all of their linked incidents are closed. However, a post-processing script would be preferable because it would be much more timely and efficient.

  • 1 accepted solution
  • 560 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!