<?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: Workflows and Jira Integration Error with Transition Status Field in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Workflows-and-Jira-Integration-Error-with-Transition-Status/m-p/249256#M1649</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/61966"&gt;@scott-comeaux&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, your solution is correct. You have to use the expression&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;{{ "Resolved" }}&amp;nbsp;&lt;FONT color="#000000"&gt;in the "Transition Status" field instead of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{{ Resolved }} &lt;FONT color="#000000"&gt;because you want to pass the string "Resolved" in this case&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;. If you don't provide quotes around it, it thinks you are referring to a variable called Resolved, which could also be part of your workflow (hence the error message "Undefined variables"). This is not due to the implementation of the Jira for Workflows app, but how Jinja expressions work. Please refer to the documentation on expressions, and how they can be used &lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/workflows/reference" target="_blank"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00FF00"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;To conclude, it is not a bug, it is how expressions are supposed to work.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 06:48:25 GMT</pubDate>
    <dc:creator>ClaudiaWisboeck</dc:creator>
    <dc:date>2024-06-27T06:48:25Z</dc:date>
    <item>
      <title>Workflows and Jira Integration Error with Transition Status Field</title>
      <link>https://community.dynatrace.com/t5/Automations/Workflows-and-Jira-Integration-Error-with-Transition-Status/m-p/248886#M1646</link>
      <description>&lt;P&gt;Inside Dynatrace -&amp;gt; Workflows. I was using the Jira Integration Tasks (Create Jira Ticket, and Transition Ticket Status). My goal was to transition Open Jira Tickets by Passing the "Key" to the transition task dynamically. (My screenshot will show this a little better)&lt;BR /&gt;I was unsure if this is a &lt;FONT face="arial black,avant garde"&gt;bug&lt;/FONT&gt; or a &lt;FONT face="arial black,avant garde"&gt;feature&lt;/FONT&gt; for filling in this field value when it forces you to use expression syntax you MUST use Quotes for your input value: &lt;FONT color="#FF0000"&gt;{{ TransitionName }}&lt;/FONT&gt; -&amp;gt; &lt;FONT color="#00FF00"&gt;{{ "TransitionName" }}&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;(screenshot 2)&lt;BR /&gt;Statically given the Issue Key -&amp;gt; Gives you a drop down that allows you to select the transition status&lt;BR /&gt;&lt;BR /&gt;(screenshot 1,3)&lt;BR /&gt;Dynamically providing the Key -&amp;gt; Forces you to use Expression syntax, but you MUST WRAP your value in Quotes or it this task will break with this Error message:&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Error evaluating input - 'targetStatus': Undefined variables in '{{ Resolved }}': Resolved&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error Using Transition Status Value without Quotes" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20689iA9255126F00295C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error-Message-without-Quotes.PNG" alt="Error Using Transition Status Value without Quotes" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error Using Transition Status Value without Quotes&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;Explaining dynamic and statically defining the Issue Key Changes the Transition status field:&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Using Issue Key - Transition status given" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20687i015D68345AE31FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="resolve-jiraticket-statically.PNG" alt="Using Issue Key - Transition status given" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Using Issue Key - Transition status given&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dynamically providing Issue Key - Transition status MUST have Quotes (because it uses {{ }} expression syntax)" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/20688i54CC74578A634E5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="resolve-jiraticket-dynamically-transitionstatus-mustHaveQuotes.PNG" alt="Dynamically providing Issue Key - Transition status MUST have Quotes (because it uses {{ &amp;amp;#125;&amp;amp;#125; expression syntax)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Dynamically providing Issue Key - Transition status MUST have Quotes (because it uses {{ }} expression syntax)&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 06:37:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Workflows-and-Jira-Integration-Error-with-Transition-Status/m-p/248886#M1646</guid>
      <dc:creator>scott-comeaux</dc:creator>
      <dc:date>2024-06-24T06:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Workflows and Jira Integration Error with Transition Status Field</title>
      <link>https://community.dynatrace.com/t5/Automations/Workflows-and-Jira-Integration-Error-with-Transition-Status/m-p/249256#M1649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/61966"&gt;@scott-comeaux&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes, your solution is correct. You have to use the expression&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;{{ "Resolved" }}&amp;nbsp;&lt;FONT color="#000000"&gt;in the "Transition Status" field instead of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{{ Resolved }} &lt;FONT color="#000000"&gt;because you want to pass the string "Resolved" in this case&lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN&gt;. If you don't provide quotes around it, it thinks you are referring to a variable called Resolved, which could also be part of your workflow (hence the error message "Undefined variables"). This is not due to the implementation of the Jira for Workflows app, but how Jinja expressions work. Please refer to the documentation on expressions, and how they can be used &lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/workflows/reference" target="_blank"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#00FF00"&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;To conclude, it is not a bug, it is how expressions are supposed to work.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 06:48:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Workflows-and-Jira-Integration-Error-with-Transition-Status/m-p/249256#M1649</guid>
      <dc:creator>ClaudiaWisboeck</dc:creator>
      <dc:date>2024-06-27T06:48:25Z</dc:date>
    </item>
  </channel>
</rss>

