https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292018-01-04T11:50:48ZRedmineRedmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=829122018-01-04T11:50:48ZGo MAEDA
<ul><li><strong>Category</strong> set to <i>Issues</i></li></ul> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=931282019-08-16T02:25:28ZYuichi HARADA
<ul><li><strong>File</strong> <a href="/attachments/23633">6033_subtasks_show_in_parent_history.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/23633/6033_subtasks_show_in_parent_history.patch">6033_subtasks_show_in_parent_history.patch</a> added</li></ul><p>Display the addition / deletion of subtask issues in the parent issue's history block.<br />I attached a patch.</p> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=932172019-08-18T13:00:13ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>Candidate for next major release</i></li></ul> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=937412019-09-16T12:43:11ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Allow removal of child subtasks to show in parent's History block</i> to <i>Allow addition/removal of subtasks to show in parent's History block</i></li><li><strong>Target version</strong> changed from <i>Candidate for next major release</i> to <i>4.1.0</i></li></ul><p>Setting the target version to 4.1.0.</p> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=939892019-09-27T22:33:01ZGo MAEDA
<ul><li><strong>Target version</strong> changed from <i>4.1.0</i> to <i>4.2.0</i></li></ul> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1015352021-03-25T07:31:11ZMarius BÄ‚LTEANU
<ul><li><strong>Target version</strong> changed from <i>4.2.0</i> to <i>5.0.0</i></li></ul> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1040342021-09-05T12:16:15ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/28018">6033_subtasks_show_in_parent_history.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/28018/6033_subtasks_show_in_parent_history.patch">6033_subtasks_show_in_parent_history.patch</a> added</li></ul><p>Update the patch for the latest trunk (<a class="changeset" title="Allow Roadmap view without any related issues (#6432). Patch by Mischa The Evil." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/21204">r21204</a>).</p> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1042332021-10-02T06:40:20ZGo MAEDA
<ul></ul><p>The patch breaks an existing test. This is because patched Redmine sends an email notification when a journal that records the addition or removal of a subtask is added.</p>
<pre>
Error:
MailHandlerTest#test_add_issue_should_send_notification:
NameError: undefined local variable or method `byebug' for #<MailHandlerTest:0x00007fd3f69b1d98>
test/unit/mail_handler_test.rb:438:in `test_add_issue_should_send_notification'
rails test test/unit/mail_handler_test.rb:431
</pre> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1042592021-10-05T00:29:56ZYuichi HARADA
<ul><li><strong>File</strong> <a href="/attachments/28125">6033_subtasks_show_in_parent_history-v2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/28125/6033_subtasks_show_in_parent_history-v2.patch">6033_subtasks_show_in_parent_history-v2.patch</a> added</li></ul><p>Go MAEDA wrote:</p>
<blockquote>
<p>The patch breaks an existing test. This is because patched Redmine sends an email notification when a journal that records the addition or removal of a subtask is added.</p>
<p>[...]</p>
</blockquote>
<p>I have confirmed that the test fails. I fixed test/unit/mail_handler_test.rb as follows.</p>
<pre><code class="diff syntaxhl"><span class="gh">diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index 3fd3ce0722..999cb8ceac 100644
</span><span class="gd">--- a/test/unit/mail_handler_test.rb
</span><span class="gi">+++ b/test/unit/mail_handler_test.rb
</span><span class="p">@@ -433,10 +433,19 @@</span> class MailHandlerTest < ActiveSupport::TestCase
assert issue.is_a?(Issue)
assert !issue.new_record?
- mail = ActionMailer::Base.deliveries.last
<span class="gd">- assert_not_nil mail
- assert mail.subject.include?("##{issue.id}")
- assert mail.subject.include?('New ticket on a given project')
</span><span class="gi">+ assert_equal 4, issue.parent_issue_id
+ assert_equal 2, ActionMailer::Base.deliveries.size
+
+ [
+ [issue.id, 'New ticket on a given project'],
+ [4, 'Issue on project 2'],
+ ].each do |issue_id, issue_subject|
+ mail =
+ ActionMailer::Base.deliveries.detect do |m|
+ /##{issue_id}/.match?(m.subject) && /#{issue_subject}/.match?(m.subject)
+ end
+ assert_not_nil mail
+ end
</span> end
def test_created_user_should_be_added_to_groups
</code></pre> Redmine - Feature #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1045562021-11-08T14:23:29ZGo MAEDA
<ul><li><strong>Subject</strong> changed from <i>Allow addition/removal of subtasks to show in parent's History block</i> to <i>Allow addition/removal of subtasks to show in parent's history</i></li><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 #6033: Allow addition/removal of subtasks to show in parent's historyhttps://www.redmine.org/issues/6033?journal_id=1045832021-11-09T05:45:44ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-2 status-8 priority-4 priority-default" href="/issues/35991">Feature #35991</a>: Parent ticket history plugin</i> added</li></ul>