<@ULVA73B9P>, for Prefect Automations, is tehre a ...
# ask-marvin
j
@Marvin, for Prefect Automations, is tehre a way to use
match_related
on
tag
and have it use AND logic instead of OR?
m
In Prefect Automations, when using the
match
and
match_related
fields for filtering events, each label added to a
match
filter is ANDed with the other labels. A single value or a list of multiple values that are ORed together can be accepted. However, it's not explicitly stated how
match_related
with
tags
would use AND logic. For a concrete answer, if the documentation doesn't specify, I would suggest checking the GitHub issues or ask for clarification in the Prefect Community Slack channel. If needed, you can search for relevant GitHub issues using the issue search tool. For more details, consult the Prefect Automations documentation.
k
nope
at least, not at the moment
you could use a compound trigger to look for multiple related objects on the same event, one per inner trigger though
👀 1
j
I am basically trying to look for a deployment with 2 tags, would I use Compound Trigger still for that>
k
yeah the only way to do that right now is a compound trigger whose two inner triggers are the same except for the match_related part. the thing that's tricky about that is each inner trigger operates on an independent
within
so it might be easier to make a third tag that represents the combined meaning of the two tags you're looking for
depends on what else carries those tags, and whether you're looking to match on more than one object
🙏 1