Feature #13244

Restrict log time for old days

Added by Pavel Potcheptsov over 4 years ago. Updated 5 months ago.

Status:ReopenedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Time tracking
Target version:-
Resolution:Duplicate

Description

For example any user have to log his spent time today or tomorrow.
If he try to log time for period more than yesterday - it should be not possible.
There are kind of users that sometimes log their time for period weeks ago and this is bad.
Is there any suggestion how to prevent such things.

time_entry.patch Magnifier (460 Bytes) Pavel Potcheptsov, 2013-11-14 14:29

time_entry.diff Magnifier (1.42 KB) Pavel Potcheptsov, 2016-08-30 10:30


Related issues

Related to Redmine - Feature #3322: Spent time allows Future date New 2009-05-08

History

#1 Updated by Jan Niggemann (redmine.org team member) over 4 years ago

We need it the other way round and have to be able to log time for weeks ago...
It would need to be configurable.

#2 Updated by Filou Centrinov over 4 years ago

+1 Good idea restricting log time. But I would restrict only for closed issues: #13596

#3 Updated by Filou Centrinov over 4 years ago

  • Related to Feature #13596: Allow time logging only for open issues added

#4 Updated by Pavel Potcheptsov almost 4 years ago

someone has been successful in this?

#5 Updated by Pavel Potcheptsov almost 4 years ago

#6 Updated by Go MAEDA about 1 year ago

  • Status changed from Resolved to New

#7 Updated by Go MAEDA about 1 year ago

  • Duplicated by Defect #14840: Time logging shouldn't be possible for the future periods added

#8 Updated by Go MAEDA about 1 year ago

  • Duplicated by Feature #3322: Spent time allows Future date added

#9 Updated by Go MAEDA about 1 year ago

  • Duplicated by deleted (Feature #3322: Spent time allows Future date)

#10 Updated by Go MAEDA about 1 year ago

#11 Updated by Go MAEDA about 1 year ago

  • Duplicated by deleted (Defect #14840: Time logging shouldn't be possible for the future periods)

#12 Updated by Go MAEDA about 1 year ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Closing as a duplicate of #3322.

#13 Updated by Toshi MARUYAMA about 1 year ago

  • Related to deleted (Feature #13596: Allow time logging only for open issues)

#14 Updated by Toshi MARUYAMA about 1 year ago

  • Related to Feature #13596: Allow time logging only for open issues added

#15 Updated by Toshi MARUYAMA about 1 year ago

  • Related to deleted (Feature #13596: Allow time logging only for open issues)

#16 Updated by Pavel Potcheptsov about 1 year ago

Last line in diff gives ability to restrict log time for specified number of days and exclude specific users from this restriction.

#17 Updated by Toshi MARUYAMA about 1 year ago

Pavel Potcheptsov wrote:

Last line in diff gives ability to restrict log time for specified number of days and exclude specific users from this restriction.

I have noted at #3322#note-11 because this issue is closed as duplicate.

#18 Updated by Kirill Marchuk 7 months ago

Why is this considered a duplicate ? This is a totally legitimate and self-standing use case: for some projects, I want to have a strict discipline in regards with spent time logging. So I want to be sure that the users on this project are allowed to log time ONLY for today AND X working days before (where X most probably equals to 1)

Does anyone know of a plugin that would allow for such functionality? Or might it be included in Redmine itself ?

#19 Updated by Pavel Potcheptsov 7 months ago

  • Status changed from Closed to Reopened

Kirill Marchuk wrote:

Why is this considered a duplicate?

Agree.

Does anyone know of a plugin that would allow for such functionality? Or might it be included in Redmine itself ?

At least current patch allow this for all projects.
There might be some general system wide setting for this and dedicated per each project setting.

#20 Updated by Kirill Marchuk 7 months ago

any chances this will be merged into redmine [soon] ?

#21 Updated by Kirill Marchuk 7 months ago

hello, anyone ? does Redmine have a community ?

#22 Updated by Kirill Marchuk 7 months ago

@Pavel, may be you can change "resolution" for this issue ?

#23 Updated by Pavel Potcheptsov 6 months ago

No I can't.

#24 Updated by Kirill Marchuk 5 months ago

is there anyone alive here ? why are patches ignored ? Man spent his time and effort into it, he deserves at least a reaction !!!

#25 Updated by Kirill Marchuk 5 months ago

well, I've seen the patch finally ))

this is NOT something that's possible to merge into upstream. just a couple of hard-coded validation checks.

Proper implementation would require a per-project setting of:
  • is time logging restricted for this project at all
  • how many days in the past are allowed to log time on (0 is minimum, which means you can only log time on today)

if this sounds bad, please leave your comments

#26 Updated by Toshi MARUYAMA 4 months ago

  • Duplicates deleted (Feature #3322: Spent time allows Future date)

#27 Updated by Toshi MARUYAMA 4 months ago

Also available in: Atom PDF