<?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: help with Conditions in workflow in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272300#M2072</link>
    <description>&lt;P&gt;ty&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/44096"&gt;@ChristopherHejl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you made my day !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wasn't aware about the operator "in" to match value in an array. Kudo to you !&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Mar 2025 18:08:38 GMT</pubDate>
    <dc:creator>jdidierpichat</dc:creator>
    <dc:date>2025-03-12T18:08:38Z</dc:date>
    <item>
      <title>help with Conditions in workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/224305#M32</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We need to run a json flow only if the Davis problem parameters has particular entity tags like [Kubernetes]version where there are multiple attributes present in entity tags .Can you help in extracting this? below is a sample param object.&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"event.id": "111111111",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"timestamp": "2023-10-01T15:26:08.427000000Z",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"display_id": "P-113232142",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"event.kind": "DAVIS_PROBLEM",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"event.name": "testing",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"entity_tags": [&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"[Kubernetes]version:xxxxxxxxxx",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"[Kubernetes]kube-monkey/identifier:app",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"[Kubernetes]kube-monkey/enabled:enabled",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"Market:GROUP",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"[Kubernetes]version:6346347547547",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"[Kubernetes]type_manifest:customer"]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 18:04:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/224305#M32</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2023-10-01T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: help with Conditions in workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/224424#M33</link>
      <description>&lt;P&gt;Below is a screenshot after executing the condition. Though the trigger has required tag, the flow is discarded saying the condition doesnt match. Please help!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kishore_0-1696320857158.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14407iC8F1370C28DD105F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kishore_0-1696320857158.png" alt="Kishore_0-1696320857158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 08:15:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/224424#M33</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2023-10-03T08:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: help with Conditions in workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272242#M2070</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67348"&gt;@Kishore&lt;/a&gt;&amp;nbsp; did you find the solution ? I got the same problem on my side&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 14:05:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272242#M2070</guid>
      <dc:creator>jdidierpichat</dc:creator>
      <dc:date>2025-03-12T14:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: help with Conditions in workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272249#M2071</link>
      <description>&lt;P&gt;The entity_tags property is an array/list. Therefore the string compare will always result in false.&lt;BR /&gt;However you can check if a value is in an array by using the "in" operator like the following example:&lt;BR /&gt;&lt;BR /&gt;the event for example like so:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{ ...
"entity_tags": [
    "[Environment]DT_RELEASE_PRODUCT:easytrade",
    "[Environment]DT_RELEASE_VERSION:1.1.1",
    "[Kubernetes]namespace:easytrade-live-debugger",
    "k8s-namespace:easytrade-live-debugger"
  ],
  "event.category": ...
}&lt;/LI-CODE&gt;
&lt;P&gt;then this would match as a condition:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;{{ "[Environment]DT_RELEASE_PRODUCT:easytrade" in event()["entity_tags"] }}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopherHejl_1-1741789098145.png" style="width: 221px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26909i2759142C709D61E8/image-dimensions/221x213?v=v2" width="221" height="213" role="button" title="ChristopherHejl_1-1741789098145.png" alt="ChristopherHejl_1-1741789098145.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopherHejl_0-1741789059804.png" style="width: 222px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26908i04CCD498043F69B6/image-dimensions/222x132?v=v2" width="222" height="132" role="button" title="ChristopherHejl_0-1741789059804.png" alt="ChristopherHejl_0-1741789059804.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: this makes sense if you only want a task to run for events which contain the tag and other tasks in other/all cases. If you want the whole workflow to run only for events containing this tag, this should go in the event filter in the first place. Tags are part of the filter UI&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristopherHejl_2-1741789320186.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/26910iB90C69BE83B5ABAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristopherHejl_2-1741789320186.png" alt="ChristopherHejl_2-1741789320186.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>Wed, 12 Mar 2025 14:22:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272249#M2071</guid>
      <dc:creator>ChristopherHejl</dc:creator>
      <dc:date>2025-03-12T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: help with Conditions in workflow</title>
      <link>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272300#M2072</link>
      <description>&lt;P&gt;ty&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/44096"&gt;@ChristopherHejl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you made my day !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wasn't aware about the operator "in" to match value in an array. Kudo to you !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 18:08:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/help-with-Conditions-in-workflow/m-p/272300#M2072</guid>
      <dc:creator>jdidierpichat</dc:creator>
      <dc:date>2025-03-12T18:08:38Z</dc:date>
    </item>
  </channel>
</rss>

