Vote #70285
完了My page - Spent time section only display 7 days, make it a parameter
0%
説明
Sorry for my english I am from Québec native language french
This feature would be easy to add.
In My Page if I personnalize my page by hadding the spent time option
only 7 days are shown.(sorry in french)
Temps passé (les 7 derniers jours)
Total: 22.21
Activité Projet Commentaire Heures
Here in my shop we do the time sheet every 2 weeks (14 days).
Could we had a parameter in the configuration section of redmine to select the number of days that could be shown in that report.
We could have general parameter in the administration configuration section
let said
Default days "time spent" report 7 day(s)
And event better could it be set by user in the my account section. (note the general one would suffice for us)
for exemple by adding a parameter
User default days "time spent" report (default) day(s)
Where (default) means to use the general one from the admin section
So in the code for the report if the user one is not default we use that one and if it is default we use the general one
here an exemple of my page (sorry in french)
Temps passé (les 7 derniers jours)
Total: 22.21
Activité Projet Commentaire Heures
so if i set my User default days "time spent" report to 14 (or the general one)
I would have see (in bold)
Temps passé (les 14 derniers jours)
Total: 22.21
Activité Projet Commentaire Heures
and list 14 days in the report
journals
Hi! i found the following plug-in
Redmine Extended Spent Time plugin
does part of what i want but since it is week and dépending of the begening day of working week could have problem.
I would prefer to be able to show the number of days.
Could it be done and integrate to the main redmine project....
Thanks
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This feature would be very useful for us, too.
--------------------------------------------------------------------------------
All the people at my office (20 guys) would love a feature like this.
Despite we update our time entries daily, sometimes we need to review how much time a task took.
In the summary pages for time entries it is difficult to know how much time we spent in a specific day.
You need to sum up the time logged. In the "my page" it is beautiful, it only shows your time entries
and it sums up how much time you spent in each day.
It has been a whole year since the last update to this post. What have happened?
--------------------------------------------------------------------------------
Category: My Page
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I'm currently working a plugin that could send a weekly email report to help our employees to manager and clock their time.
In My Page, it could be nice to have such a feature that tell your activities for the last X days/month.
--------------------------------------------------------------------------------
Each user can now change the number of days that are displayed on "My Page".
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Could you also add a predefined parameter "This week" which actually looks like
<pre>
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).
</pre>
This is important for employees who have to register defined amount of hours per week and it's useful to see amount of time that you spent/registered during current week.
--------------------------------------------------------------------------------
Pavel Potcheptsov wrote:
> Could you also add a predefined parameter "This week" which actually looks like
> [...]
> This is important for employees who have to register defined amount of hours per week and it's useful to see amount of time that you spent/registered during current week.
You should open a new issue for your request.
--------------------------------------------------------------------------------
Thanks, I've created #24346.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Each user can now change the number of days that are displayed on "My Page".
There's a regression with that in Firefox on Mac (at least). When clicking the "gear" icon the input field is shown, but it is not clickable because the drag handler for positioning the box overlays it.
I cannot edit the input field. I can't even click the "Save" button.
Can you have a look please?
--------------------------------------------------------------------------------
P.S.: I can only edit the text field when clicking the label to the right....
--------------------------------------------------------------------------------
Tobias Fischer wrote:
> There's a regression with that in Firefox on Mac (at least). When clicking the "gear" icon the input field is shown, but it is not clickable because the drag handler for positioning the box overlays it.
> I cannot edit the input field. I can't even click the "Save" button.
Probably you were in the "Personalize this page" screen. Please click the gear icon in the normal "My page" screen.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Probably you were in the "Personalize this page" screen. Please click the gear icon in the normal "My page" screen.
Yow are right, that works! But shouldn't we hide the "Plus" and the "Gear" icon then in "personalization mode" on this page to avoid such situations?
--------------------------------------------------------------------------------
In the "Personalize this page" screen, there are multiple issues:
1. Input field from time block is not clickable on Firefox mac (reported above by Tobias Fischer)
2. Save no of days for spent time block is not working because of the incorrect action form ("/my/page_layout" instead of "my/page"). It throws the following error "ActionController::RoutingError (No route matches [POST] "/my/page_layout"):"
3. The cursor on issue/time entry hover indicates that a contextual menu is available, but if you try to open the menu, it won't work because of the edit mode.
Attached is a patch that fixes all 3 issues. I chose to hide the contextual icons because I think that in the "Personalize this page" mode, the user should focus on how to arrange the blocks, and not on the block settings.
Any feedback is welcomed.
--------------------------------------------------------------------------------
Reopening to deal with #8761#note-20.
--------------------------------------------------------------------------------
Patch applied, thanks.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,New,2106,Ability to choose period in 'Spent time' and count of watched issues on 'My page'.
relates,New,24346,My page - Spent time: add predefined parameter "This week"
relates,New,10713,My Page: Make the items on the page configurable
duplicates,Closed,7508,modify the extent time of the "spent time" on "my page"
duplicates,Closed,916,Improve the timesheet summary on My Page