<?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: What is the syntax for custom conditions in workflows? in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/229217#M97</link>
    <description>&lt;P&gt;Hello, where can I find documentation on how to use custom conditions, I need to use a condition for a workflow using DQL, for instance, if I get more than 5 records for an IP, it will creates an issue on Jira otherwise ends the task&lt;/P&gt;</description>
    <pubDate>Sun, 19 Nov 2023 19:23:30 GMT</pubDate>
    <dc:creator>Alejandro_hdez</dc:creator>
    <dc:date>2023-11-19T19:23:30Z</dc:date>
    <item>
      <title>What is the syntax for custom conditions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/215158#M95</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I can't figure out the syntax for adding a Custom Condition in workflows.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I've tried using expressions which have been working elsewhere like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"{{event()['event.status']" == 'ACTIVE'`&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;, but the expression is not being evaluated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone tell me the right syntax for this, or show me other examples of how to use Conditions?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysulkin_0-1686875864762.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12274i32B5F61CB20DF5AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysulkin_0-1686875864762.png" alt="ysulkin_0-1686875864762.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysulkin_1-1686875888146.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12275iE31496383468F591/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysulkin_1-1686875888146.png" alt="ysulkin_1-1686875888146.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 04:17:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/215158#M95</guid>
      <dc:creator>ysulkin</dc:creator>
      <dc:date>2023-06-16T04:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the syntax for custom conditions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/215170#M96</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63451"&gt;@ysulkin&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you have is almost correct. The custom condition must be an expression as a whole as it should evaluate to a boolean i.e.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{{ event()["event.status"] == "ACTIVE" }}&lt;/PRE&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="michal_zawislak_0-1686898714526.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12281iDCABD6D044CFDC16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michal_zawislak_0-1686898714526.png" alt="michal_zawislak_0-1686898714526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="michal_zawislak_1-1686898719757.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/12282iF6A7463E8ACD58E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="michal_zawislak_1-1686898719757.png" alt="michal_zawislak_1-1686898719757.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>Fri, 16 Jun 2023 06:59:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/215170#M96</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-06-16T06:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the syntax for custom conditions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/229217#M97</link>
      <description>&lt;P&gt;Hello, where can I find documentation on how to use custom conditions, I need to use a condition for a workflow using DQL, for instance, if I get more than 5 records for an IP, it will creates an issue on Jira otherwise ends the task&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 19:23:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/229217#M97</guid>
      <dc:creator>Alejandro_hdez</dc:creator>
      <dc:date>2023-11-19T19:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is the syntax for custom conditions in workflows?</title>
      <link>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/229231#M98</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/68853"&gt;@Alejandro_hdez&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Currently, there isn't specific documentation dedicated to custom conditions. These typically come in the form of Jinja &lt;A href="https://docs.dynatrace.com/docs/platform-modules/cloud-automation/workflows/reference#filters" target="_self"&gt;expressions&lt;/A&gt; with an optional condition. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example, your condition might be:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{{ result("execute_dql_query_1").records | length &amp;gt; 5 }}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Please let me know if I can help you further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 08:01:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/What-is-the-syntax-for-custom-conditions-in-workflows/m-p/229231#M98</guid>
      <dc:creator>michal_zawislak</dc:creator>
      <dc:date>2023-11-20T08:01:49Z</dc:date>
    </item>
  </channel>
</rss>

