プロジェクト

全般

プロフィール

Vote #77976

未完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
My page_42
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
42
version_id:
0
issue_org_id:
24346
author_id:
49110
assigned_to_id:
0
comments:
3
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.


journals

--------------------------------------------------------------------------------
!http://www.redmine.org/attachments/download/17017/rm_this_week.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,8761,My page - Spent time section only display 7 days, make it a parameter
duplicates,Closed,6546,"Spent time" block for current week on "My page"

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0