https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292016-10-05T18:11:37ZRedmineRedmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=739002016-10-05T18:11:37ZHelder Manuel Torres Vieira
<ul><li><strong>File</strong> <a href="/attachments/16817">time_1.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/16817/time_1.png">time_1.png</a> added</li><li><strong>File</strong> <a href="/attachments/16816">time_2.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/16816/time_2.png">time_2.png</a> added</li><li><strong>File</strong> <a href="/attachments/16818">time_3.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/16818/time_3.png">time_3.png</a> added</li><li><strong>File</strong> <a href="/attachments/16819">time_4.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/16819/time_4.png">time_4.png</a> added</li></ul><p><img src="https://www.redmine.org/attachments/download/16817/time_1.png" alt="" /></p>
<p><img src="https://www.redmine.org/attachments/download/16816/time_2.png" alt="" /></p>
<p><img src="https://www.redmine.org/attachments/download/16818/time_3.png" alt="" /></p>
<p><img src="https://www.redmine.org/attachments/download/16819/time_4.png" alt="" /></p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=743332016-11-02T03:11:15ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Improve the hours validation on the TimeEntry model</i> to <i>Reject over 24 hours on time entry</i></li></ul> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=797622017-07-05T12:00:11ZCésar DJ Caësar 9114
<ul></ul>Personally, I don't agree because I need:
<ul>
<li>for the moment, "0" hour because I use custom fields for time tracking, allowing me to count "seconds" or "days";</li>
<li>it should always be possible to enter all the hours spent when somebody is back from a mission. For example, I often send my dev outside, where they don't have access to Redmine. When they're back I just ask them the number of hours IN TOTAL, and not to enter the number of hours for each day. It's far more confortable.</li>
</ul>
<p>I think that limitations should always be an option and not a compulsory restiction for all the users :)</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=797662017-07-05T13:20:55ZAndrey Lobanov (RedSoft)
<ul></ul><p>César Lizurey wrote:</p>
<blockquote>
Personally, I don't agree because I need:
<ul>
<li>for the moment, "0" hour because I use custom fields for time tracking, allowing me to count "seconds" or "days";</li>
<li>it should always be possible to enter all the hours spent when somebody is back from a mission. For example, I often send my dev outside, where they don't have access to Redmine. When they're back I just ask them the number of hours IN TOTAL, and not to enter the number of hours for each day. It's far more confortable.</li>
</ul>
<p>I think that limitations should always be an option and not a compulsory restiction for all the users :)</p>
</blockquote>
<p>Totally agree with César Lizurey.</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=797722017-07-05T19:59:34ZMischa The Evil
<ul><li><strong>Subject</strong> changed from <i>Reject over 24 hours on time entry</i> to <i>Reject 0 hour and over 24 hours on time entry</i></li></ul><p>Helder Manuel Torres Vieira wrote:</p>
<blockquote>
<p>About the limitation to introduce hours with value 0, [...]</p>
</blockquote>
<p>FWIW: Jean-Philippe Lang said the following about this in <a class="issue tracker-1 status-1 priority-4 priority-default" title="Defect: Issue view does not show spent time if hours are zero (New)" href="https://www.redmine.org/issues/9090#note-3">#9090#note-3</a>:</p>
<blockquote>
<p>[...] Some people might use time entries with 0 hours for specific purpose, I'm not really in favor of removing this possibility. We need more feedback before doing this change.</p>
</blockquote> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=800722017-07-16T13:48:00ZMischa The Evil
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/26450">Defect #26450</a>: user can enter more than 24 hours in the same day</i> added</li></ul> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=800772017-07-16T18:18:21ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><blockquote>
<p>About the limitation for values superior to 24 hours, this is due to having 1 time value based on a concrete day, whereby the maximum hours that are usable per day are 24.</p>
</blockquote>
<p>We should check existing timelogs to make sure that the total hours logged by a user on one day is <= 24h. Checking that each single timelog is <= 24h like in the proposed patch does not prevent users to log more than 24h on one day.<br />Right?</p>
I think we definitely need to make this restrictions configurable, for example with these 2 settings:
<ul>
<li>Accept 0h timelogs (yes/no)</li>
<li>Maximum hours that a user can log on a single day</li>
</ul> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=800872017-07-17T06:33:43ZRanda Bustami
<ul></ul><p>Jean-Philippe Lang wrote:</p>
<blockquote><blockquote>
<p>About the limitation for values superior to 24 hours, this is due to having 1 time value based on a concrete day, whereby the maximum hours that are usable per day are 24.</p>
</blockquote>
<p>We should check existing timelogs to make sure that the total hours logged by a user on one day is <= 24h. Checking that each single timelog is <= 24h like in the proposed patch does not prevent users to log more than 24h on one day.<br />Right?</p>
I think we definitely need to make this restrictions configurable, for example with these 2 settings:
<ul>
<li>Accept 0h timelogs (yes/no)</li>
<li>Maximum hours that a user can log on a single day</li>
</ul>
</blockquote>
<p>this will be excellent, in which version we can see this pls ?</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=801222017-07-19T14:14:50ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Subject</strong> changed from <i>Reject 0 hour and over 24 hours on time entry</i> to <i>Settings to accept 0 hours time entries and for maximum hours per user and day</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>4.0.0</i></li></ul><p>Randa Bustami wrote:</p>
<blockquote>
<p>this will be excellent, in which version we can see this pls ?</p>
</blockquote>
<p>The feature is committed in <a class="changeset" title="Adds settings for time entry hours validation (#24005)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/16832">r16832</a>, it will included in 4.0.</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=802972017-07-26T08:57:17ZRanda Bustami
<ul><li><strong>File</strong> <a href="/attachments/18841">exceed time entry 2nd entry.PNG</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/18841/exceed%20time%20entry%202nd%20entry.PNG">exceed time entry 2nd entry.PNG</a> added</li><li><strong>File</strong> <a href="/attachments/18842">exceed time entry.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/18842/exceed%20time%20entry.png">exceed time entry.png</a> added</li></ul><p>we had Applied the code and the system prevent to log more than 24 hours/ entry. but the issue is still we can log more than 24 hours in another entry for the same date <br />the system should have 2 validation<br />1- check hours not to exceed 24 hours<br />2- check if the user have another entry in the same date so the total of all entries for that date should not exceed 24 hours<br />pls check the attached screenshot</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=803082017-07-26T16:53:16ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Randa Bustami wrote:</p>
<blockquote>
<p>we had Applied the code and the system prevent to log more than 24 hours/ entry. but the issue is still we can log more than 24 hours in another entry for the same date</p>
</blockquote>
<p>Make sure that you have configured the maximum hours that can be logged on one day (eg. 24h). By default, it is set to 999: go to Admin -> Settings -> Time Tracking -> Maximum hours that can be logged per day and user.</p>
<p>This issue is closed, please reopen a new one if it does not work as expected.</p> Redmine - Patch #24005: Settings to accept 0 hours time entries and for maximum hours per user and dayhttps://www.redmine.org/issues/24005?journal_id=843352018-04-02T20:58:58ZMarius BĂLTEANU
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-2 status-5 priority-4 priority-default closed" href="/issues/1300">Feature #1300</a>: Log time control </i> added</li></ul>