<?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: Task &amp;quot;jira-edit-issue&amp;quot; can not handle arrays in &amp;quot;Description&amp;quot;-Filed (with solution) in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/task-quot-jira-edit-issue-quot-can-not-handle-arrays-in-quot/m-p/488651#M858</link>
    <description>&lt;P&gt;Thanks for the info&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 17:37:37 GMT</pubDate>
    <dc:creator>gfilippov</dc:creator>
    <dc:date>2022-05-19T17:37:37Z</dc:date>
    <item>
      <title>Task "jira-edit-issue" can not handle arrays in "Description"-Filed (with solution)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/task-quot-jira-edit-issue-quot-can-not-handle-arrays-in-quot/m-p/381217#M95</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I had an issue with an array for several tickets in jira-edit-issue and there in the field "Description".&lt;/P&gt;&lt;P&gt;the problem was, that I had several outputs from an other Task.&lt;/P&gt;&lt;P&gt;So, the array "output.color": contains:&lt;/P&gt;&lt;P&gt;[{"Color":"blue"},{"Color":"green"},{"Color":"red"]&lt;/P&gt;&lt;P&gt;Now I had three Jira-Tasks to update.&lt;/P&gt;&lt;P&gt;First ticket with following content in the "Description" field: blue&lt;/P&gt;&lt;P&gt;Secound ticket with following content in the "Description" field: green&lt;/P&gt;&lt;P&gt;Third ticket with following content in the "Description" field: red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, my Description field had ${output.color.Color}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But you know what?&lt;/P&gt;&lt;P&gt;Each Jira Ticket got in the Description filed this output:&lt;/P&gt;&lt;P&gt;["blue","green","red"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution I've found was a self-made python script.&lt;/P&gt;&lt;P&gt;Then I created a own BYOI and this looks like:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;import json&lt;/P&gt;&lt;P&gt;inputtable = demisto.args().get('Input-array')&lt;BR /&gt;my_dict=json.dumps(inputtable,indent=4)&lt;BR /&gt;list_json=json.loads(my_dict)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;outs= (list_json["Color"])&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;output = {&lt;BR /&gt;"coloroutput": out&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;demisto.results({&lt;BR /&gt;'Type' : entryTypes['note'],&lt;BR /&gt;'Contents': output,&lt;BR /&gt;'ContentsFormat' : formats['json'],&lt;BR /&gt;'HumanReadable': output,&lt;BR /&gt;'ReadableContentsFormat' : formats['markdown'],&lt;BR /&gt;'EntryContext' : output&lt;BR /&gt;})&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;With that Script I was able to use then the field Description in jira-edit-issue with ${coloroutput} and the tickets got now the right color.&lt;/P&gt;&lt;P&gt;Of course, I had to add in the Integration Settings - Commands - Arguments this "Input-array".&lt;/P&gt;&lt;P&gt;I guess, that the problem could lay on the fact, that I had to first dumps the array and then also use loads...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;roger&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 15:48:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/task-quot-jira-edit-issue-quot-can-not-handle-arrays-in-quot/m-p/381217#M95</guid>
      <dc:creator>r_buchwalder</dc:creator>
      <dc:date>2021-01-21T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Task "jira-edit-issue" can not handle arrays in "Description"-Filed (with solution)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/task-quot-jira-edit-issue-quot-can-not-handle-arrays-in-quot/m-p/488651#M858</link>
      <description>&lt;P&gt;Thanks for the info&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 17:37:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/task-quot-jira-edit-issue-quot-can-not-handle-arrays-in-quot/m-p/488651#M858</guid>
      <dc:creator>gfilippov</dc:creator>
      <dc:date>2022-05-19T17:37:37Z</dc:date>
    </item>
  </channel>
</rss>

