Project

General

Profile

Actions

Defect #14851

open

Time spent not recorded (Git)

Added by Aleksandr Guidrevitch about 11 years ago. Updated about 5 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Example from the repository page:

55a144ce 09/04/2013 12:44 pm Aleksandr Guidrevitch
#41. removed dynamic forms. @0:40
b8732336 09/04/2013 11:56 am Aleksandr Guidrevitch
#41. removed unused models. @0:20
41f2385b 09/04/2013 11:33 am Aleksandr Guidrevitch
#41. time added. @1h

Commits are correctly tied to #41, but no time gets recorded

1. 'Aleksandr Guidrevitch' has the same email in commits and redmine settings. His email contains a dot, eg , just in case
2. Admin -> Settings -> Repositories -> 'Enable time logging' is on
3. Admin -> Settings -> Repositories -> 'Activity for logged time' is 'Development' and 'Development' is enabled activity in the project commits are done for
4. Git repository is refreshed using github_hook plugin, but it is not failure of this plugin as far as I can tell from the code.

Actions #1

Updated by Aleksandr Guidrevitch about 11 years ago

5. The most important part is that commits are going into development branch, not master

Actions #2

Updated by Toshi MARUYAMA about 11 years ago

  • Category changed from Time tracking to SCM
  • Status changed from New to Needs feedback

Does user have a permission to log time?

Actions #3

Updated by Lubos Racansky about 11 years ago

I have the same issue, using 2.3.3.stable via BitNami and mercurial, default branch.
I see commits at issue, but spent time is not logged.

I have fixed it thanks to Toshi, which mentioned, that the user of SCM (hg or git) has to have the permission to log time (I had different user name in hg than in redmine).

Actions #4

Updated by Rob Hallam about 11 years ago

Toshi MARUYAMA wrote:

Does user have a permission to log time?

My situation is nearly-identical to Aleksandr Guidrevitch :
  1. Same email in git as in Redmine
  2. Admin -> Settings -> Repositories -> 'Enable time logging' is on
  3. Admin -> Settings -> Repositories -> 'Activity for logged time' is 'Development' and 'Development' is enabled activity in the project
  4. Git repository is refreshed using post_update hook
  5. Commits going to branch other than master

Beyond that:

  1. User (me) does have permission to log time in project
  2. Repository user mapping (Project > Settings > Repository > Users, aka "committers" page) is correct

I'm running Redmine version 2.3.3.devel, Ruby 1.9.3-p194, Rails 3.2.13, git 1.8.3.2, PostgreSQL. No plugins.

As with Aleksandr Guidrevitch, the commits show up as "Associated Revisions", but no time is logged.

If more information (configuration, logs are needed) I can post them. Thanks!

Actions #5

Updated by Tom Misilo about 5 years ago

Sorry for resurrecting and old ticket, but this seems to be the most relevant one to my question, and it is still open.

Is there a way to get time logging via SCM for a branch that isn't master? Or to be able to specify which branch should be the main branch and have the logging be applicable in that one. We have some repositories that we track upstream on master and have our own branch for our setup.

Thanks!

Actions

Also available in: Atom PDF