<?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: Setting a condition that skip a step if the trigger returns 0 in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302547#M2711</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Good to hear it's working now! If you ever want to simplify the logic, you can use the new "trigger only on close" option we just added to the problem trigger.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sonja&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2026 11:32:31 GMT</pubDate>
    <dc:creator>sonja</dc:creator>
    <dc:date>2026-07-29T11:32:31Z</dc:date>
    <item>
      <title>Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301675#M2666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like creating a workflow to be triggered when the events that have been marked as ‘closed’ and have a specific tag.&amp;nbsp;And in the first step following the trigger, set a condition so that the step is skipped if the trigger’s result is 0&lt;/P&gt;&lt;P&gt;For that, I've defined this event trigger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1783487040794.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33628i103227F168B300B6/image-size/medium?v=v2&amp;amp;px=400" alt="erh_inetum_0-1783487040794.png" title="erh_inetum_0-1783487040794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And in the first step after event trigger, this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1783487135397.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33629i8DB767271D07BE96/image-size/medium?v=v2&amp;amp;px=400" alt="erh_inetum_1-1783487135397.png" title="erh_inetum_1-1783487135397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know this condition "{{ result("Event trigger") | length &amp;gt; 0}}" is not correct because&amp;nbsp;the previous tasks is a trigger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any know what would be the right condition?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 05:09:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301675#M2666</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T05:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301677#M2669</link>
      <description>&lt;P&gt;I'm a bit confused. The event trigger should always produce a result; otherwise, the workflow wouldn't be triggered in the first place.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:18:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301677#M2669</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-08T07:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301679#M2670</link>
      <description>&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;As you can see, now, at the time I execute the querry, it returns 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1783495087876.png"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/33630i69C3F4656CEFE844/image-size/medium?v=v2&amp;amp;px=400" alt="erh_inetum_0-1783495087876.png" title="erh_inetum_0-1783495087876.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would like the event triggers when the result of the condition is &amp;gt; 0 or in the next steps, the steps was skipped if the result of the condition is 0.&lt;/P&gt;&lt;P&gt;Is it possible to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:21:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301679#M2670</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T07:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301681#M2671</link>
      <description>&lt;P&gt;Okay, I think there's a misunderstanding here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query past events&lt;/STRONG&gt; does not run or trigger your workflow. It's only used to verify that your event filter is working as expected.&lt;/P&gt;&lt;P&gt;In your case, there wasn't a single event in the past 7 days that matched your filter conditions.&lt;BR /&gt;So, let's say you created this workflow a week ago. It would never have started because no event matching your filter conditions would have occurred to trigger it. No need for&amp;nbsp;&lt;SPAN&gt;{{ result("Event trigger") | length &amp;gt; 0}} as you would never even start your workflow.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 07:27:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301681#M2671</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-07-08T07:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301683#M2672</link>
      <description>&lt;P&gt;Hi Dylan,&lt;/P&gt;&lt;P&gt;You are right. Putting the condition for which I want the workflow triggers it's enough. Now it's working as it's expected.&lt;/P&gt;&lt;P&gt;Thanks a lots for your help and also for your answer in this other &lt;A href="https://community.dynatrace.com/t5/Alerting/Event-Trigger-on-Problem-Closure/td-p/290443" target="_self"&gt;post&lt;/A&gt; because it's helped me to complete the condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 08:15:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/301683#M2672</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-08T08:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302048#M2690</link>
      <description>&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Champion lia-component-message-view-widget-author-username"&gt;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/40722" aria-label="View Profile of erh_inetum" target="_blank"&gt;&lt;SPAN class="login-bold"&gt;erh_inetum!&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;What kind of events do you want your workflow to trigger on? For problem records, we have a dedicated problem trigger where you can configure it to only fire for the "closed" state, which might be a cleaner fit for your use case.&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;Curious to hear more about what you're trying to achieve!&lt;/P&gt;
&lt;P class="font-claude-response-body break-words whitespace-normal"&gt;You can find more on alerting and notifications in the documentation here: &lt;A class="underline underline underline-offset-2 decoration-1 decoration-current/40 hover:decoration-current focus:decoration-current" href="https://docs.dynatrace.com/docs/analyze-explore-automate/alerting-and-notifications" target="_blank"&gt;https://docs.dynatrace.com/docs/analyze-explore-automate/alerting-and-notifications&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Sonja&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 07:33:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302048#M2690</guid>
      <dc:creator>sonja</dc:creator>
      <dc:date>2026-07-17T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302484#M2708</link>
      <description>&lt;P&gt;Hi Sonja,&lt;/P&gt;&lt;P&gt;We want to trigger an event when a problem is transitioning to closed. With the solution proposed for Dylan (&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/19639"&gt;@dylan_taelemans&lt;/a&gt;&amp;nbsp;) we got it.&lt;/P&gt;&lt;P&gt;Let me know if it's clear or you need any additional explanation.&lt;/P&gt;&lt;P&gt;Thanks a lot for your interest.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2026 09:05:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302484#M2708</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2026-07-28T09:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting a condition that skip a step if the trigger returns 0</title>
      <link>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302547#M2711</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good to hear it's working now! If you ever want to simplify the logic, you can use the new "trigger only on close" option we just added to the problem trigger.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sonja&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2026 11:32:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Setting-a-condition-that-skip-a-step-if-the-trigger-returns-0/m-p/302547#M2711</guid>
      <dc:creator>sonja</dc:creator>
      <dc:date>2026-07-29T11:32:31Z</dc:date>
    </item>
  </channel>
</rss>

