Project

General

Profile

Actions

Feature #24346

open

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

Added by Pavel Potcheptsov over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
My page
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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 a parameterClosedJean-Philippe Lang2011-07-07

Actions
Has duplicate Redmine - Patch #6546: "Spent time" block for current week on "My page"Closed2010-09-30

Actions
Actions #1

Updated by Toshi MARUYAMA over 7 years ago

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

Updated by Pavel Potcheptsov over 7 years ago

Actions #3

Updated by Go MAEDA about 7 years ago

  • Has duplicate Patch #6546: "Spent time" block for current week on "My page" added
Actions

Also available in: Atom PDF