bulk close issues

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

bulk close issues

L0 Member

Hello team
I have the following scenario of 16K open issues and I would like to perform mass closure of these open cases. Is there any way to do this? i tried to build a playbook which i give it the excel sheet of all the issues IDs and start bulk resolve but i have problem with it , it is very slow , i mean it takes 24 hours for just close 4K issues , so is there any other options ? like api or something ? 

 
1 accepted solution

Accepted Solutions

L7 Applicator

Hi @H.Eldessouki 

 

As far as I know it can be done through Cortex XSIAM Public API, Your script must send an authenticated request with the filter and the instruction to change the status to resolved (STATUS_030_RESOLVED). 

 

We recommend engaging your Accounts team and they can assist you with the complete API request and endpoint details for scripting.

LIVEcommunity Team Member( Empowering Security, Every Step)
Mohammed Shamamulla
✔ Like posts that help you !!
✔ Accept as Solution to guide others !!

Read more about how and why to accept solutions.

View solution in original post

2 REPLIES 2

L7 Applicator

Hi @H.Eldessouki 

 

As far as I know it can be done through Cortex XSIAM Public API, Your script must send an authenticated request with the filter and the instruction to change the status to resolved (STATUS_030_RESOLVED). 

 

We recommend engaging your Accounts team and they can assist you with the complete API request and endpoint details for scripting.

LIVEcommunity Team Member( Empowering Security, Every Step)
Mohammed Shamamulla
✔ Like posts that help you !!
✔ Accept as Solution to guide others !!

Read more about how and why to accept solutions.

L0 Member

thanks @mshamamulla , already made the right script and run it against the issues name and it's actually very fast ( like close more than 6 per sec ) , so it is confirmed [scripts are faster than playbooks ]  and here is the script i use for anyone face the same problem :
```

def main():
page = 0
closed = 0

while True:
res = demisto.executeCommand("getIncidents", {
"query": 'name:"NAME OF THE NOISY ISSUES" and status:0',
"size": 500,
"page": page
})

incidents = res[0]["Contents"]["data"]

if not incidents:
break

for inc in incidents:
demisto.executeCommand("closeInvestigation", {
"id": inc["id"],
"reason": "False Positive",
"closeNotes": "Confirmed noise"
})
closed += 1

page += 1

return_results(f"Done. Closed {closed} incidents.")

main()```
  • 1 accepted solution
  • 67 Views
  • 2 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!