Feature #10020

Enable global time logging at /time_entries/new

Added by Olivier Jacquet over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Time tracking
Target version:1.4.0
Resolution:Fixed

Description

To log time you currently need to first select a project, then select the time entries report after which you can log your time against a project. We need to be able to log time against lots of different projects without always having an issue.

To make this easier it would be nice to have a global time entry form where one can choose the project and enter the hours at the same time. Almost identical to the currently time logging screen only that you can select a project instead of an issue.

redmine-timelog.patch Magnifier (2.31 KB) Olivier Jacquet, 2012-01-17 18:27

Associated revisions

Revision 8691
Added by Jean-Philippe Lang over 5 years ago

Enable global time logging at /time_entries/new (#10020).

Revision 8693
Added by Jean-Philippe Lang over 5 years ago

Fixed that project is ignored when entering an issue id on /time_entries/new form (#10020).

History

#1 Updated by Etienne Massip over 5 years ago

  • Category set to Time tracking

#2 Updated by Olivier Jacquet over 5 years ago

I don't have Rails experience but here's what I got so far.

- Added project dropdown to the timelog form;
- Modified order of getting project_id in find_project so that the POSTed project_id has priority on the project_id in the URL

What I'd like to achieve:

- When on a time entry form from a project the dropdown shouldn't be there. Then everything can remain as-is;
- When there isn't a project chosen (e.g. on /time_entries/new) there should be a project dropdown and no issue textfield;
- Ideally the project hierarchy is also repeated there so that I can use the Chosen plugin to easily search a project

Some context:

- We currently use tickspot for time tracking but it isn't that user friendly if you have a lot of different projects and we would like to log all time in redmine because logging in 2 applications was also cumbersome.

#3 Updated by Olivier Jacquet over 5 years ago

It looks like this goes against the architecture of redmine. It really expects a project to be set. I'm thinking to add a general project_id that would allow access. For example 'all' or 'undefined' something like that.

#4 Updated by Jean-Philippe Lang over 5 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 1.4.0
  • Resolution set to Fixed

Feature added in r8691. It covers what you're expecting, except that the issue field was left visible, as there's no reason IMO to prevent the user from logging time on a specific issue of a project.

#5 Updated by Ivan Cenov over 5 years ago

It is possible to select a project and to enter a number of an issue that is from another project. The result is that the selected project is silently changed to the one that the issue belongs to. May be some validation on the issue edit control should be added. On the other side this would be heavy operation in a system where many projects and many issues exist.

#6 Updated by Jean-Philippe Lang over 5 years ago

Ivan Cenov wrote:

It is possible to select a project and to enter a number of an issue that is from another project. The result is that the selected project is silently changed to the one that the issue belongs to.

Fixed in r8693.

Also available in: Atom PDF