https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-02-27T16:07:06ZRedmineRedmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=461712013-02-27T16:07:06ZPavel Lautsevich
<ul></ul><p>+1</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=639772015-06-01T16:37:27ZMatt Mencel
<ul></ul><p>Anyone know if this is possible via a plugin? I have someone asking if these fields can be added to the notification email.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=640222015-06-04T08:17:39ZTiffany C
<ul></ul><p>Hi, I'm using Redmine2.4.1. <br />It works fine when I added "start_date" and "due_date" to issues_helper.rb as the following code.<br />Could you add to the latest Redmine, too? It would be really useful!</p>
<pre>
<code class="diff syntaxhl"><span class="gh">Index: app/helpers/issues_helper.rb
===================================================================
</span><span class="gd">--- app/helpers/issues_helper.rb>
</span><span class="gi">+++ app/helpers/issues_helper.rb>
</span><span class="p">@@ -233,7 +233,7 @@</span>
<span class="p">_
def email_issue_attributes(issue, user)
</span> items = []
<span class="gd">- %w(author status priority assigned_to category fixed_version).each do |attribute|
</span><span class="gi">+ %w(author status priority assigned_to category fixed_version start_date due_date).each do |attribute|
</span> unless issue.disabled_core_fields.include?(attribute+"_id")
<span class="p">items << "#{l("field_#{attribute}")}: #{issue.send attribute}"
</span> end
</code><br /></pre> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=740412016-10-14T17:57:46ZBryan Settles
<ul></ul><p>In redmine/app/views/mailer/reminder.html.erb, put <%= issue.due_date issue.start_date <span>> before the <</span>= link_to_issue()%></p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=781912017-04-25T06:25:49ZFlorian ROBERT
<ul></ul><p>+1</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=849402018-05-09T15:44:49Zryan lee
<ul></ul><p>Hi, I am using Redmine 3.4.2.<br />I have edited the file 'app/helpers/issues_helper.rb' as Tiffany C's post but it not works.<br />I want the notification email include the info start date and due date.<br />If you have the solution please let me know. Thank you very much</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=852652018-05-28T16:09:23ZYuuki NARA
<ul></ul><p>+1</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=862652018-07-20T19:27:30ZSenya Senya
<ul></ul><p>I posted a patch <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Start date and due date in issue email notification (Closed)" href="https://www.redmine.org/issues/29254">#29254</a></p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=881402018-10-28T19:37:13ZMarius BÄ‚LTEANU
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/29254">Feature #29254</a>: Start date and due date in issue email notification</i> added</li></ul> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=881422018-10-28T19:38:51ZMarius BÄ‚LTEANU
<ul><li><strong>File</strong> <a href="/attachments/21733">issue_mailer_helper.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/21733/issue_mailer_helper.diff">issue_mailer_helper.diff</a> added</li></ul><p>Attached the patch uploaded by Senya Senya in <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Start date and due date in issue email notification (Closed)" href="https://www.redmine.org/issues/29254">#29254</a>.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=882972018-11-07T23:43:00ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>+1<br />Start date and due date are important information for project management.</p>
<p>I am setting the target version to 4.1.0.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=884992018-11-25T00:44:06ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/10378">Feature #10378</a>: Don't show empty fields in email notifications</i> added</li></ul> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896052019-01-23T23:41:08ZGo MAEDA
<ul></ul><p>I agree with showing start date and due date in reminders, But the current patch in <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: Start date and due date in email notifications (Closed)" href="https://www.redmine.org/issues/13307#note-10">#13307#note-10</a> needs some fix.</p>
<p>You can disable some standard fields in the tracker setting. Needless to say, disabled fields are not shown in reminders. However, start date and due date are always shown in reminders even if those fields are disabled.</p>
<p>When IssuesHelper#email_issue_attributes checks if a field name is included in the disabled_core_fields array, it assumes that the format of the value is "*_id". This does not work for start_date and due_date because those fields does not have the suffix "_id" in the disabled_core_fields array.</p>
<pre><code class="ruby syntaxhl"> <span class="sx">%w(author status priority assigned_to category fixed_version start_date due_date)</span><span class="p">.</span><span class="nf">each</span> <span class="k">do</span> <span class="o">|</span><span class="n">attribute</span><span class="o">|</span>
<span class="k">unless</span> <span class="n">issue</span><span class="p">.</span><span class="nf">disabled_core_fields</span><span class="p">.</span><span class="nf">include?</span><span class="p">(</span><span class="n">attribute</span><span class="o">+</span><span class="s2">"_id"</span><span class="p">)</span>
<span class="k">if</span> <span class="n">html</span>
<span class="n">items</span> <span class="o"><<</span> <span class="n">content_tag</span><span class="p">(</span><span class="s1">'strong'</span><span class="p">,</span> <span class="s2">"</span><span class="si">#{</span><span class="n">l</span><span class="p">(</span><span class="s2">"field_</span><span class="si">#{</span><span class="n">attribute</span><span class="si">}</span><span class="s2">"</span><span class="p">)</span><span class="si">}</span><span class="s2">: "</span><span class="p">)</span> <span class="o">+</span> <span class="p">(</span><span class="n">issue</span><span class="p">.</span><span class="nf">send</span> <span class="n">attribute</span><span class="p">)</span>
<span class="k">else</span>
<span class="n">items</span> <span class="o"><<</span> <span class="s2">"</span><span class="si">#{</span><span class="n">l</span><span class="p">(</span><span class="s2">"field_</span><span class="si">#{</span><span class="n">attribute</span><span class="si">}</span><span class="s2">"</span><span class="p">)</span><span class="si">}</span><span class="s2">: </span><span class="si">#{</span><span class="n">issue</span><span class="p">.</span><span class="nf">send</span> <span class="n">attribute</span><span class="si">}</span><span class="s2">"</span>
<span class="k">end</span>
<span class="k">end</span>
<span class="k">end</span>
</code></pre>
<pre>
$ bin/rails c
Loading development environment (Rails 5.2.2)
2.6.0 :001 > Tracker.find(1).disabled_core_fields
Tracker Load (0.3ms) SELECT "trackers".* FROM "trackers" WHERE "trackers"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
=> ["assigned_to_id", "category_id", "fixed_version_id", "parent_issue_id", "start_date", "due_date", "estimated_hours", "done_ratio", "description"]
</pre> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896062019-01-24T00:41:12ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/22290">issue_mailer_helper-v2.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22290/issue_mailer_helper-v2.diff">issue_mailer_helper-v2.diff</a> added</li></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>When IssuesHelper#email_issue_attributes checks if a field name is included in the disabled_core_fields array, it assumes that the format of the value is "*_id". This does not work for start_date and due_date because those fields does not have the suffix "_id" in the disabled_core_fields array.</p>
</blockquote>
<p>Here is an updated patch. The patch works whether the value in the disabled_core_fields array has "_id" suffix or not.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896082019-01-24T02:04:52ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/22291">issue_mailer_helper-v3.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22291/issue_mailer_helper-v3.diff">issue_mailer_helper-v3.diff</a> added</li></ul><p>Sorry, the patch issue_mailer_helper-v2.diff does not work. Here is a fixed patch.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896152019-01-24T11:07:11ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/22295">test-for-13307.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/22295/test-for-13307.diff">test-for-13307.diff</a> added</li></ul><p>Updated a test for this feature.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896222019-01-25T08:06:45ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Thank you for your contribution.</p> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=896232019-01-25T08:07:26ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Start date and due date in email</i> to <i>Start date and due date in email notifications</i></li></ul> Redmine - Feature #13307: Start date and due date in email notificationshttps://www.redmine.org/issues/13307?journal_id=900342019-02-11T06:02:51ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/18472">Feature #18472</a>: Due date and custom fileds in e-mail</i> added</li></ul>