From edeeee1227be55b0febb9fb1ec27d368adb9284d Mon Sep 17 00:00:00 2001 From: Vamsi Krishna <46787868+vamsikrishnamathala@users.noreply.github.com> Date: Sun, 8 Jun 2025 23:46:12 +0530 Subject: [PATCH] [WEB-4063]chore: updated work item email template (#7044) * chore: updated work item email template * chore: passed dynamic value for email template --------- Co-authored-by: NarayanBavisetti --- apiserver/plane/bgtasks/email_notification_task.py | 1 + .../templates/emails/notifications/issue-updates.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apiserver/plane/bgtasks/email_notification_task.py b/apiserver/plane/bgtasks/email_notification_task.py index e700b2624..dcc37796d 100644 --- a/apiserver/plane/bgtasks/email_notification_task.py +++ b/apiserver/plane/bgtasks/email_notification_task.py @@ -284,6 +284,7 @@ def send_email_notification( "project": str(issue.project.name), "user_preference": f"{base_api}/profile/preferences/email", "comments": comments, + "entity_type": "issue", } html_content = render_to_string( "emails/notifications/issue-updates.html", context diff --git a/apiserver/templates/emails/notifications/issue-updates.html b/apiserver/templates/emails/notifications/issue-updates.html index e17f0e9e6..8ba91c6fe 100644 --- a/apiserver/templates/emails/notifications/issue-updates.html +++ b/apiserver/templates/emails/notifications/issue-updates.html @@ -3,7 +3,7 @@ - Updates on issue + Updates on {{entity_type}} @@ -37,7 +37,7 @@ {% else %}

{{summary}} {% if data|length > 0 %} {{ data.0.actor_detail.first_name}} {{data.0.actor_detail.last_name}} {% else %} {{ comments.0.actor_detail.first_name}} {{comments.0.actor_detail.last_name}} {% endif %} and others.

{% endif %} {% for update in data %} {% if update.changes.name %} -

The issue title has been updated to {{ issue.name}}

+

The {{entity_type}} title has been updated to {{ issue.name}}

{% endif %} {% if data %}
@@ -224,7 +224,7 @@ {% endif %}
-
View issue
+
View {{entity_type}}
@@ -232,7 +232,7 @@
- This email was sent to {{ receiver.email }}. If you'd rather not receive this kind of email, you can unsubscribe to the issue or manage your email preferences. + This email was sent to {{ receiver.email }}. If you'd rather not receive this kind of email, you can unsubscribe to the {{entity_type}} or manage your email preferences.