ui icon indicating copy to clipboard operation
ui copied to clipboard

Can't edit subject in the Automation `EmailNotificationAction` through Cloud UI

Open marvin-robot opened this issue 3 years ago • 5 comments
trafficstars

Opened from the Prefect Public Slack Community

jessica.smith: The <https://docs.prefect.io/orchestration/concepts/automations.html#actions-reference|Automations page> states that you can set the subject on an EmailNotificationAction. I can't see a way to do this in the UI, am I missing something or is the documentation incorrect?

jessica.smith: You can do it through GraphQL, I think the UI is just missing it. Here's a GraphQL example for reference:

mutation { update_action( input: {action_id: "5274761b-fd26-45d2-950f-21bb48e1212x", config: {email_notification: {to_emails: ["mailto:[email protected]|[email protected]"], subject: "Prefect flow {flow_name} failed"}}} ) { success } }

anna: thanks, let's open an issue for it - could you add some screenshots and more context to the GitHub issue?

<@ULVA73B9P> open "Can't edit subject in the Automation EmailNotificationAction through Cloud UI"

jessica.smith: Yep, I'll get them added shortly

Original thread can be found here.

marvin-robot avatar May 11 '22 17:05 marvin-robot

Adding an email notification gives the options to set the subject and the email_to values, but there is no option for the subject.

image

image

image

NodeJSmith avatar May 11 '22 18:05 NodeJSmith

Any update on this issue? Our users would prefer custom subject lines in email notifications because the default one is pretty vague.

ccueto36 avatar Jun 14 '22 13:06 ccueto36

Thanks for the feedback. This is something we will consider as an enhancement for 2.0

zhen0 avatar Sep 14 '22 19:09 zhen0

Note the subject is customizable via the API if this is a major issue for you. You can use all the same template variables as the body.

zanieb avatar Sep 14 '22 22:09 zanieb

Note the subject is customizable via the API if this is a major issue for you. You can use all the same template variables as the body.

Using the API is what I've been doing so far. But this isn't a perfect solution. We have a few users who aren't very technical who don't know how to use the API and rely on the UI fields to create actions.

ccueto36 avatar Sep 15 '22 14:09 ccueto36