プロジェクト

全般

プロフィール

Vote #81019

未完了

Show "Due in X days" in email notifications

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
0
issue_org_id:
33884
author_id:
332
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Issue details page shows "Due in X days" information next to the due date (#31499). I think it is useful and consistent if the infromation is also shown in email notification.

!{width: 511px; border: 1px solid #ccc;}.due-in-x-days-in-email-notification.png!


journals

--------------------------------------------------------------------------------
I created a patch with reference to #31499.

<pre><code class="diff">
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index a6515d283..caf23bfdd 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -384,6 +384,9 @@ module IssuesHelper
attr_value = (issue.send attribute).to_s
next if attr_value.blank?

+ if attribute == 'due_date'
+ attr_value << " (#{due_date_distance_in_words(issue.send(attribute))})" unless issue.closed?
+ end
if html
items << content_tag('strong', "#{l("field_#{attribute}")}: ") + attr_value
else
</code></pre>
--------------------------------------------------------------------------------
This may be confusing in some cases. If I read this email 2 days later, "due in 9 days" is misleading, since it should be "due in 7 days" now, but email will contain initial and outdated label. Using relative dates in emails (which are static) is a different story than relative dates on website (which will update on every page refresh).
--------------------------------------------------------------------------------
Robert Korulczyk wrote:
> This may be confusing in some cases. If I read this email 2 days later, "due in 9 days" is misleading, since it should be "due in 7 days" now, but email will contain initial and outdated label. Using relative dates in emails (which are static) is a different story than relative dates on website (which will update on every page refresh).

I agree.
--------------------------------------------------------------------------------


related_issues

relates,Closed,31499,Show "Due in X days" in issue details page

Admin Redmine さんが約2年前に更新

  • カテゴリEmail notifications_9 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0