<?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: Assign owner to &amp;quot;current user&amp;quot; in playbook tasks in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503769#M971</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/195689"&gt;@asawyer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really o solution thank you, but i need fix one more thing that this automation keeps error state until someone click "Run automation now" and this seems liken en error to analyst at first sight,&amp;nbsp; any idea about how can i integrate this into a conditional task or clear the error state befor click.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKececioglu_0-1655292067493.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41808i8BD762ACA2B66CCF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="MKececioglu_0-1655292067493.png" alt="MKececioglu_0-1655292067493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one more thing i realized that xsoar allows us to run commands in "Completion Note" inside a standart conditional match and if i can set a fixed command that includes "!AssignAnalystToIncident assignBy=current"&amp;nbsp; this will work too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKececioglu_1-1655292383805.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41809iF2230111E3689D3F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="MKececioglu_1-1655292383805.png" alt="MKececioglu_1-1655292383805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 11:26:55 GMT</pubDate>
    <dc:creator>MKececioglu</dc:creator>
    <dc:date>2022-06-15T11:26:55Z</dc:date>
    <item>
      <title>Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502165#M942</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a playbook task at one of the early steps which asks analyst to start investigation or not. The below command let me change owner to command executer himself but i need this execution inside the playbook. When an analyst click "Yes" to previous mentioned task is it possible to run this command on behalf of analyst. I dont want to force analyst to click "assign to me" as it has already been asked in mentioned question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"!AssignAnalystToIncident assignBy=current"&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 11:07:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502165#M942</guid>
      <dc:creator>MKececioglu</dc:creator>
      <dc:date>2022-06-09T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502412#M943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216476"&gt;@MKececioglu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is possible with a conditional task. But it possible with a data collection task. Since it saves the user who fill\completed the form. You can also shorten the playbook task by adding a question based on the owner field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might also be possible via a conditional task. But you will need to go via the API to find out which user competed the entry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;AssignAnalystToIncident&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;command will not work for your use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-10 at 5.56.26 am.png" style="width: 923px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41691i6CC76BCC1B3498E0/image-dimensions/923x373/is-moderation-mode/true?v=v2" width="923" height="373" role="button" title="Screen Shot 2022-06-10 at 5.56.26 am.png" alt="Screen Shot 2022-06-10 at 5.56.26 am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 19:59:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502412#M943</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-06-09T19:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502527#M945</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&amp;nbsp;thanks for response i realize that when i set owner field as a data collention question , it automatically populate analyst list and based on the answer, set it as owner which is a great way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . But still curious about a mandatory "assing to me" selection to deploy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:41:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/502527#M945</guid>
      <dc:creator>MKececioglu</dc:creator>
      <dc:date>2022-06-10T07:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503295#M959</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216476"&gt;@MKececioglu&lt;/a&gt;&amp;nbsp;not sure if this is what you are looking for, but wanted to jump in and mention that it is possible to simply run the&amp;nbsp;&lt;STRONG&gt;AssignToMeButton&lt;/STRONG&gt; script in a playbook (not just as a button).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 01:18:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503295#M959</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2022-06-14T01:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503769#M971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/195689"&gt;@asawyer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is really o solution thank you, but i need fix one more thing that this automation keeps error state until someone click "Run automation now" and this seems liken en error to analyst at first sight,&amp;nbsp; any idea about how can i integrate this into a conditional task or clear the error state befor click.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKececioglu_0-1655292067493.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41808i8BD762ACA2B66CCF/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="MKececioglu_0-1655292067493.png" alt="MKececioglu_0-1655292067493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one more thing i realized that xsoar allows us to run commands in "Completion Note" inside a standart conditional match and if i can set a fixed command that includes "!AssignAnalystToIncident assignBy=current"&amp;nbsp; this will work too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MKececioglu_1-1655292383805.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41809iF2230111E3689D3F/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="MKececioglu_1-1655292383805.png" alt="MKececioglu_1-1655292383805.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 11:26:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503769#M971</guid>
      <dc:creator>MKececioglu</dc:creator>
      <dc:date>2022-06-15T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503972#M976</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216476"&gt;@MKececioglu&lt;/a&gt;&amp;nbsp;correct, the&amp;nbsp;&lt;STRONG&gt;AssignToMeButton&amp;nbsp;&lt;/STRONG&gt;script does need to be executed manually, either as a button or in the playbook, so that it knows which user to assign the incident to. You could do something like this to try to structure it so the user understands what they need to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-15 at 1.47.36 PM.png" style="width: 325px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41828i021EF8867B63FD64/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-06-15 at 1.47.36 PM.png" alt="Screen Shot 2022-06-15 at 1.47.36 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&amp;nbsp;suggested above, you can also have the user complete a manual task, then use the API to get that user's username, and assign the incident to them. The following API call returns the Work Plan details (replace &lt;EM&gt;INCIDENT_ID&lt;/EM&gt; with the actual ID):&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;!demisto-api-get uri="/investigation/&lt;EM&gt;INCIDENT_ID&lt;/EM&gt;/workplan"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Then you can parse the response to find the user who completed the manual task. This key of the response contains the list of Work Plan tasks:&amp;nbsp;&lt;STRONG&gt;response.invPlaybook.tasks&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;Then you can parse through those (you can use a tag to uniquely identify a particular task if needed), and find the user who completed the task in the&amp;nbsp;&lt;STRONG&gt;completedBy&amp;nbsp;&lt;/STRONG&gt;key.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-06-15 at 4.54.56 PM.png" style="width: 348px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/41829i262BD10F329A1D15/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-06-15 at 4.54.56 PM.png" alt="Screen Shot 2022-06-15 at 4.54.56 PM.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Jun 2022 22:55:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503972#M976</guid>
      <dc:creator>asawyer</dc:creator>
      <dc:date>2022-06-15T22:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503996#M977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/216476"&gt;@MKececioglu&lt;/a&gt;, playbooks and automation can run in the background so there MUST be user interaction for the "current" part of command to understand who it needs to assign the ticket to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I see it, you have only 2 options.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Assign the owner automatically without analyst interaction - You can use the !AssignAnalystToIncident&amp;nbsp;automation with any one of following parameters - assignBy, onCall or roles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Assign the owner with analyst interaction - Button as&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/195689"&gt;@asawyer&lt;/a&gt;&amp;nbsp;mentioned or Datacollection task. I would choose data collection over a conditional task since it easier to implement and better in every way!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 00:27:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/503996#M977</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2022-06-16T00:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Assign owner to "current user" in playbook tasks</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/504230#M980</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/195689"&gt;@asawyer&lt;/a&gt;&amp;nbsp;thank you very much for your support, "&lt;STRONG&gt;&lt;SPAN class=""&gt;!demisto-api-get uri="/investigation/&lt;EM&gt;INCIDENT_ID&lt;/EM&gt;/workplan" &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;works great for me after getting the user information "setOwner" automation handles everything.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 14:36:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/assign-owner-to-quot-current-user-quot-in-playbook-tasks/m-p/504230#M980</guid>
      <dc:creator>MKececioglu</dc:creator>
      <dc:date>2022-06-16T14:36:15Z</dc:date>
    </item>
  </channel>
</rss>

