<?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 xdr-get-incident command date time dispute in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xdr-get-incident-command-date-time-dispute/m-p/565554#M2828</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a script that need to get incidents from server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;incidents = execute_command(&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "xdr-get-incidents",&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "lte_creation_time": last_creation_time.split("+")[0],&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "gte_creation_time": first_creation_time.split("+")[0],&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "page": page,&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "limit": limit,&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have data collection playbook which has date picker task inside it. The date taken through task feeding last_creation_time and first_creation_time variables. In the returned incident list there is dispute between taken data and incident resolved_timestamp. Server returns data in GMT time even i convert the time. For example, I picked 2023-11-13T23:59:00 but its also returning the incident created in 2023-11-14T01:08:00.&lt;BR /&gt;&lt;BR /&gt;My solution is checking resolved_timestamp value with the date which taken through data collection task. But if there is a problem in my script or there is a different solution for this i want to correct.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Nov 2023 12:55:36 GMT</pubDate>
    <dc:creator>ZuleyhaAy</dc:creator>
    <dc:date>2023-11-14T12:55:36Z</dc:date>
    <item>
      <title>xdr-get-incident command date time dispute</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xdr-get-incident-command-date-time-dispute/m-p/565554#M2828</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a script that need to get incidents from server.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;incidents = execute_command(&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "xdr-get-incidents",&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "lte_creation_time": last_creation_time.split("+")[0],&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "gte_creation_time": first_creation_time.split("+")[0],&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "page": page,&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "limit": limit,&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have data collection playbook which has date picker task inside it. The date taken through task feeding last_creation_time and first_creation_time variables. In the returned incident list there is dispute between taken data and incident resolved_timestamp. Server returns data in GMT time even i convert the time. For example, I picked 2023-11-13T23:59:00 but its also returning the incident created in 2023-11-14T01:08:00.&lt;BR /&gt;&lt;BR /&gt;My solution is checking resolved_timestamp value with the date which taken through data collection task. But if there is a problem in my script or there is a different solution for this i want to correct.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Nov 2023 12:55:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xdr-get-incident-command-date-time-dispute/m-p/565554#M2828</guid>
      <dc:creator>ZuleyhaAy</dc:creator>
      <dc:date>2023-11-14T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: xdr-get-incident command date time dispute</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xdr-get-incident-command-date-time-dispute/m-p/571818#M2970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/296836"&gt;@ZuleyhaAy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since xdr-get-incidents do not have a parameter for specify returning incidents by&amp;nbsp;resolved_timestamp, you will need to apply some type of filter after incidents are returned.&lt;/P&gt;
&lt;P&gt;Since you are doing all of this in an automation instead of in a playbook, I think your approach would be the best way to do that.&lt;/P&gt;
&lt;P&gt;Once all of incidents are returned by creation date, transform &lt;SPAN&gt;resolved_timestamp (UTC) field into ISO 8601 since that is date picker format, or&amp;nbsp;vice versa, and only return incidents that are relevant.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 18:49:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/xdr-get-incident-command-date-time-dispute/m-p/571818#M2970</guid>
      <dc:creator>yuki_sato</dc:creator>
      <dc:date>2024-01-04T18:49:15Z</dc:date>
    </item>
  </channel>
</rss>

