<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reopen XSOAR Incidents Bulk in XSOAR in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/reopen-xsoar-incidents-bulk-in-xsoar/m-p/577865#M3076</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to reopen a large amount of incidents on Xsoar. Can anyone suggest how I can do this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to run both the built-in command and the automation to reopen from the run command button with the bulk incidents selected but to no avail.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;MR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 09:14:01 GMT</pubDate>
    <dc:creator>michaelsysec242</dc:creator>
    <dc:date>2024-02-21T09:14:01Z</dc:date>
    <item>
      <title>Reopen XSOAR Incidents Bulk in XSOAR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/reopen-xsoar-incidents-bulk-in-xsoar/m-p/577865#M3076</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to reopen a large amount of incidents on Xsoar. Can anyone suggest how I can do this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to run both the built-in command and the automation to reopen from the run command button with the bulk incidents selected but to no avail.&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;MR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 09:14:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/reopen-xsoar-incidents-bulk-in-xsoar/m-p/577865#M3076</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2024-02-21T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reopen XSOAR Incidents Bulk in XSOAR</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/reopen-xsoar-incidents-bulk-in-xsoar/m-p/577921#M3079</link>
      <description>&lt;P&gt;&amp;nbsp;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are couple of ways you can do this:&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run &lt;STRONG&gt;!reopenInvestigation&lt;/STRONG&gt; command in the incidents page after picking the incidents you open, I suggest doing in smaller batches. See attached screenshot for more clarification.&lt;/LI&gt;
&lt;LI&gt;You can create a wrapper script that fetches the relevant closed investigations and run the command on them&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Here is an example script to this by query:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;queryid = demisto.getArg("query")
if "status:closed" not in queryid.lower():
    queryid += " and status:Closed"
incs = demisto.executeCommand("getIncidents", {"query":queryid})[0]['Contents']
if incs['total'] == 0:
    demisto.results("Could not find incidents, please confirm query")
    sys.exit()
listreopen = [i['investigationId'] for i in incs['data']]
for incid in listreopen:
    demisto.executeCommand("reopenInvestigation", {"id":incid})
strlist = ",".join(listreopen)
totalcount = len(listreopen)
demisto.results(f"Done, reopened {totalcount} incidents: {strlist}")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 16:32:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/reopen-xsoar-incidents-bulk-in-xsoar/m-p/577921#M3079</guid>
      <dc:creator>jqamruddin</dc:creator>
      <dc:date>2024-02-21T16:32:20Z</dc:date>
    </item>
  </channel>
</rss>

