ui
ui copied to clipboard
Can't edit subject in the Automation `EmailNotificationAction` through Cloud UI
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.
Adding an email notification gives the options to set the subject and the email_to values, but there is no option for the subject.



Any update on this issue? Our users would prefer custom subject lines in email notifications because the default one is pretty vague.
Thanks for the feedback. This is something we will consider as an enhancement for 2.0
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.
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.