<?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 Re: In Linked Incidents, all owners should be the same in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593855#M3516</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/56537747"&gt;@oromeromoya&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you. I wanted to assign to the owner of the connected incident. So I give the id to 'SearchIncidentSummary'(linked incident's) and I take the owner and assign it to new incident. Thank you, I gained a different perspective.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 07:31:11 GMT</pubDate>
    <dc:creator>YilmazDincer</dc:creator>
    <dc:date>2024-08-02T07:31:11Z</dc:date>
    <item>
      <title>In Linked Incidents, all owners should be the same</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593650#M3509</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to assign all incidents that are Linkedincident to a single owner. What should I do for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to assign with top-user,machine-learning parameters. But that didn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:58:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593650#M3509</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2024-07-31T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: In Linked Incidents, all owners should be the same</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593830#M3512</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="UserName lia-user-name lia-user-rank-L3-Networker lia-component-message-view-widget-author-username"&gt;&lt;A id="link_7" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/242705" target="_self" aria-label="View Profile of YilmazDincer"&gt;&lt;SPAN class=""&gt;YilmazDincer,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;To assign all "linked" incidents to a specific owner in XSOAR, you can create a playbook or an automation script that searches for linked incidents and assigns them to the desired owner.&amp;nbsp;Here is a sample script in Python you may customize according to your needs:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;def main():
    # Define the owner to whom incidents will be assigned
    owner = 'specific-owner'  # Replace with the actual owner's username

    # Search for all linked incidents
    search_results = demisto.executeCommand('getIncidents', {
        'query': 'linked:true'
    })

    if not search_results or 'Contents' not in search_results[0]:
        demisto.results('No linked incidents found.')
        return

    incidents = search_results[0]['Contents']['data']

    # Assign each linked incident to the specified owner
    for incident in incidents:
        incident_id = incident['id']
        demisto.executeCommand('demisto-api-post', {
            'uri': f'incident/{incident_id}/owner',
            'body': {
                'owner': owner
            }
        })

    demisto.results(f'{len(incidents)} linked incidents assigned to {owner}.')

if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Aug 2024 22:06:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593830#M3512</guid>
      <dc:creator>oromeromoya</dc:creator>
      <dc:date>2024-08-01T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: In Linked Incidents, all owners should be the same</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593855#M3516</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/56537747"&gt;@oromeromoya&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you. I wanted to assign to the owner of the connected incident. So I give the id to 'SearchIncidentSummary'(linked incident's) and I take the owner and assign it to new incident. Thank you, I gained a different perspective.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 07:31:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/in-linked-incidents-all-owners-should-be-the-same/m-p/593855#M3516</guid>
      <dc:creator>YilmazDincer</dc:creator>
      <dc:date>2024-08-02T07:31:11Z</dc:date>
    </item>
  </channel>
</rss>

