Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marvin-robot opened this issue May 11, 2022 · 5 comments
Labels
bug Something isn't working component:cloud Consider for Orion For consideration when we add more functionality with Orion from:slack ui v1

Comments

@marvin-robot
Copy link
Member

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:test@test.com|test@test.com"], 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.

@anna-geller anna-geller added bug Something isn't working component:cloud ui v1 labels May 11, 2022
@znicholasbrown znicholasbrown transferred this issue from PrefectHQ/prefect May 11, 2022
@NodeJSmith
Copy link

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

@ccueto36
Copy link

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

@zhen0 zhen0 added the Consider for Orion For consideration when we add more functionality with Orion label Sep 14, 2022
@zhen0
Copy link
Member

zhen0 commented Sep 14, 2022

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

@zanieb
Copy link
Contributor

zanieb commented Sep 14, 2022

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.

@ccueto36
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:cloud Consider for Orion For consideration when we add more functionality with Orion from:slack ui v1
Projects
None yet
Development

No branches or pull requests

6 participants