Skip to content

Send notification to the assigned user #1117

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

Conversation

shridk
Copy link
Contributor

@shridk shridk commented Oct 3, 2024

The UI Action contains a server-side script that creates a record in the sys_email table, including the email body, subject, and recipient details.
When the button on the incident form is clicked, an email will be sent to the user to whom the incident is assigned.

If the incident is not assigned to any user, a message will be shown, and no email will be sent.
If the assigned user's email address is missing, the email will not be sent, and an appropriate message will be displayed.
However, if the incident is assigned to a user with a valid email address, the UI Action will successfully send the email to the assigned user.

shridk added 3 commits October 3, 2024 11:44
UI Action Server Side Script to send notification to the assigned user
Readme - UI Action Server Side Script to send notification to the assigned user
@abhrajyotikanrar abhrajyotikanrar self-assigned this Oct 3, 2024
@abhrajyotikanrar
Copy link
Contributor

Hi @shridk, thank you for your contribution. However, we believe this is not a correct approach and there are better approaches available to trigger email to any user. Please follow the best practices and submit the solution again. This PR will be marked closed as of now. Feel free to create new PR while you make the necessary changes.

@shridk
Copy link
Contributor Author

shridk commented Oct 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants