Feature #24346

My page - Spent time: add predefined parameter "This week"

Added by Pavel Potcheptsov about 1 year ago. Updated 11 months ago.

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

0%

Category:My page
Target version:-
Resolution:

Description

Inspired by #8761.
Could you also add a predefined parameter "This week" which actually looks like

where("#{TimeEntry.table_name}.user_id = ? \
AND #{TimeEntry.table_name}.spent_on \
BETWEEN ? AND ?", User.current.id, \
Date.today - (Date.today.cwday - 1) % 7, \
Date.today - (Date.today.cwday - 1) % 7 + 6).

This is important for employees who have to register defined amount of hours on weekly basis and it's useful to see amount of time that you spent/registered during current week instead of "last n days" that may include days from previous week and current week.


Related issues

Related to Redmine - Feature #8761: My page - Spent time section only display 7 days, make it... Closed 2011-07-07
Duplicated by Redmine - Patch #6546: "Spent time" block for current week on "My page" Closed 2010-09-30

History

#1 Updated by Toshi MARUYAMA about 1 year ago

  • Related to Feature #8761: My page - Spent time section only display 7 days, make it a parameter added

#2 Updated by Pavel Potcheptsov 11 months ago

#3 Updated by Go MAEDA 10 months ago

  • Duplicated by Patch #6546: "Spent time" block for current week on "My page" added

Also available in: Atom PDF