01 Oct 2023 07:04 PM
Hi,
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.
Solved! Go to Solution.
03 Oct 2023 09:15 AM
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!!
12 Mar 2025 02:05 PM
Hey @Kishore did you find the solution ? I got the same problem on my side 😥
12 Mar 2025 02:22 PM
The entity_tags property is an array/list. Therefore the string compare will always result in false.
However you can check if a value is in an array by using the "in" operator like the following example:
the event for example like so:
{ ...
"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": ...
}
then this would match as a condition:
{{ "[Environment]DT_RELEASE_PRODUCT:easytrade" in event()["entity_tags"] }}
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
12 Mar 2025 06:08 PM
you made my day !
I wasn't aware about the operator "in" to match value in an array. Kudo to you !