https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292007-06-28T11:26:00ZRedmineRedmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=2122007-06-28T11:26:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>As you said, it's not a bug. Even if you remove an issue, you<br />can not "un-spend" the time you have already spent<br />on it.<br />If you don't want to lose the information, just don't remove<br />the issue, close it.</p> Redmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=2112007-06-29T16:33:00ZBalazs Dan
<ul></ul><p>Hi,</p>
<p>I understand your point and you are right. We cant undo the <br />spent time.<br />But if you remove an issue, then the timelog entries remain <br />and becuase of this you cant check what was the issue. And <br />this is confusing.</p>
<p>I can imagine 2 possible solutions:<br />1, When you delete an issue then the system will ask <br />you "Would you like to delete time entries also?" <br />2, When you delete an issue then it wont be deleted. The <br />system will flag its deleted state in a field. Normally <br />deleted issues wont be displayed in any report. Only in <br />time reports. (just because time entries remain...)</p>
<p>Please consider! If somebody deletes an issue then he does <br />it for a reason. And normally only managers can delete <br />issues.</p>
<p>One more thing:<br />If you delete an issue and you query timelogs for the <br />project then you can see every timelog. And you can edit <br />every entry. See attached timelogentries.jpg!<br />But when you try to edit it then the system will <br />say "<<issue>> is invalid". See<br />CantEditTimelogEntry.jpg!</p> Redmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=2102007-07-02T10:21:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I fixed the last point you mentioned in rev 581 (:dependent =><br />:nullify was missing on issue/time_entries association).</p>
<p>If you want the time entries to be removed with the issue, you<br />can replace :nullify by :delete_all in app/models/issue.rb on<br />line 30.</p>
<p>I'll try to implement solution 1, or maybe add an option<br />at application level to specify if time entries are removed with<br />issues.</p> Redmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=2092007-07-02T10:43:00ZBalazs Dan
<ul></ul><p>Great! Thanx.<br />I will do as you suggested. And I'm looking forward to your <br />implementation.. :)</p> Redmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=2082007-11-23T02:30:00ZDerek Montgomery
<ul></ul><p>A status Deleted only available for requests and searches maybe?</p> Redmine - Defect #71: Timelog entries remain after deleting an issuehttps://www.redmine.org/issues/71?journal_id=15642008-03-01T08:56:08ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Let the user choose when deleting issues with reported hours (closes #734, #71): * to delete the ..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/1182">r1182</a>.</p>