https://prefect.io logo
#prefect-community
Title
# prefect-community
s

Stephen Herron

01/25/2023, 5:04 PM
hey I was thinking shouldn’t automation triggers have
deployment run state
in addition to
flow run state
and
work queue health
? I have a flow
trigger_dbt
in multiple deployments and I only want to trigger for specific conditions (i.e. the deployment conditions.. specific params etc).
or maybe something like “this flow for x deployment” or something
w

Will Raphaelson

01/25/2023, 5:32 PM
Hey @Stephen Herron thanks for that question. We can consider adding that to the UI. In the interim, you can achieve what you’re trying to do by posting the automation via api. Here are the api docs, you’ll want to use that match related field under the trigger payload like
Copy code
"match_related": {
  "prefect.resource.role": "deployment",
  "prefect.name": "the name"
}
added a tracking issue for the ui component. https://github.com/PrefectHQ/prefect/issues/8253
🙏 1