# prefect-community

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
work queue health
? I have a flow
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

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",
  "": "the name"
added a tracking issue for the ui component.
🙏 1