<?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 Custom Widget Xsoar in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/custom-widget-xsoar/m-p/569848#M2916</link>
    <description>&lt;P&gt;Hi, I am trying to create a custom widget that calculate follwing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(Total Incident+ Total Command Execution)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with date paramters adjusted by widget. I tried to implement this with JSON method and Automation Script but unable to get the solution.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Can you suggest some solution and how this will be acheieved using automation script.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second question is it possible that we can alter the output of widget thorugh JSON widget method(like if we get total incidents then we perform some calculations on it) and then return the output Thank you in advance #xsoar #automation @members&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 09:01:14 GMT</pubDate>
    <dc:creator>Syedhkt</dc:creator>
    <dc:date>2023-12-14T09:01:14Z</dc:date>
    <item>
      <title>Custom Widget Xsoar</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/custom-widget-xsoar/m-p/569848#M2916</link>
      <description>&lt;P&gt;Hi, I am trying to create a custom widget that calculate follwing&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;(Total Incident+ Total Command Execution)&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with date paramters adjusted by widget. I tried to implement this with JSON method and Automation Script but unable to get the solution.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Can you suggest some solution and how this will be acheieved using automation script.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second question is it possible that we can alter the output of widget thorugh JSON widget method(like if we get total incidents then we perform some calculations on it) and then return the output Thank you in advance #xsoar #automation @members&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 09:01:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/custom-widget-xsoar/m-p/569848#M2916</guid>
      <dc:creator>Syedhkt</dc:creator>
      <dc:date>2023-12-14T09:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Widget Xsoar</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/custom-widget-xsoar/m-p/570439#M2922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/299499185"&gt;@Syedhkt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get only the numbers, you don't need to use a script. Dashboard data sources are capable of it. I am sending an example. You can play with data using an automation script for the second question. For example, If you want to play with the incident data, you can use the below commands to get the incidents and then do some calculations according to your needs.&lt;BR /&gt;&lt;BR /&gt;res = demisto.executeCommand("GetIncidentsByQuery", {"fromDate": "5 days ago", "query":"-status:closed"})[0]['Contents']&lt;BR /&gt;incidents = json.loads(res)&lt;BR /&gt;&lt;BR /&gt;As a reference, please see the attachment for a widget automation script which calculates the task duration using /workers/status API endpoint.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 08:45:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/custom-widget-xsoar/m-p/570439#M2922</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-12-20T08:45:18Z</dc:date>
    </item>
  </channel>
</rss>

