Feature #588

Timelog move/delete

Added by Michael Pirogov over 5 years ago. Updated 2 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Time tracking
Target version:-
Resolution:

Description

It'll be nice to have an ability to move or delete your timelog entries between projects (as issue_move). For example
cause of mistake.

issue_move.png (8.89 KB) Michael Pirogov, 2008-02-07 20:41

destroy.rhtml Magnifier (1.26 KB) David Petersen, 2008-02-07 21:34

timelog_controller.rb.patch Magnifier (707 Bytes) David Petersen, 2008-02-07 21:34

details.rhtml.patch Magnifier (1.16 KB) David Petersen, 2008-02-07 21:34

edit.html.patch Magnifier (605 Bytes) David Petersen, 2008-02-07 21:34

redmine.rb.patch Magnifier (492 Bytes) David Petersen, 2008-02-07 21:34

en.yml.patch Magnifier (671 Bytes) David Petersen, 2008-02-07 21:34

History

#1 Updated by David Petersen over 5 years ago

You can "move" a time entry by editing it and then changing the issue number, time really isn't linked to a project but a issue.

The ability to delete a time entry would be nice.

#2 Updated by Michael Pirogov over 5 years ago

time really isn't linked to a project but a issue.
I think, it is. Try to change Issue number to another, which not belongs to the current project and you'll get an error. I'll attach a screenshot. You can see, that error is displayed even if an Issue ID exists and received correctly.

P.S. "Allow cross-project issue relations" is enabled.

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

Indeed, the time entry can not currently be moved to an issue of another project.
I think I could change this behaviour. What do you think ?

#4 Updated by Michael Pirogov over 5 years ago

In our company we are spending less time to fill in a time entries. We just fill'em in one default 'stuff' project and then, near the end of the week and/or month, sort them. For another example: you have to do a very high priority work and after that you got next one (urgent too). There is no time to fill in all the forms to create a new issue. So you just made a 'timestamp' in 'stuff' (common, garbage, etc) project and at the end of a work day you'll create an issue ticket with all the things inside. After that you have to create a relation with your time entry. Back in time :) It's reverse logic: 1. Time entry 2. Issue. Something like that. Hope it's understandable. Sorry for my english, it's night up here now :)

#5 Updated by David Petersen over 5 years ago

Here are the files to add the delete functionality.

destroy.rhtml - should go /app/views/timelog/destroy.rhtml
timelog_controller.rb.patch - patch file for /app/controllers/timelog_controller.rb
details.rhtml.patch - patch file for /app/views/timelog/details.rhtml
edit.rhtml.patch - patch file for /app/views/timelog/edit.rhtml
redmine.rb.patch - patch file for /lib/redmine.rb
en.yml.patch - patch file for /lang/en.yml

Think thats all the changes needed.

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

Thanks. I'll have a look at all these files, even if a single diff would be easier to apply :-)

#7 Updated by David Petersen over 5 years ago

Sorry about that, Still learning about the whole patch thing.

#8 Updated by Michael Pirogov about 5 years ago

  • Target version set to 0.7

up. It's really one of major things...

#9 Updated by Jean-Philippe Lang about 5 years ago

  • Target version deleted (0.7)

#10 Updated by Toshi MARUYAMA about 2 years ago

  • Category set to Time tracking

#11 Updated by Jens Wellmeyer over 1 year ago

The problem with moving spent time from one project to another still exists. We use redmine to track our time spent with over 200 Projects and would love to be able to transfer entries.
Any chance that this will be included in an upcoming version?

#12 Updated by Paco Alcaide 2 months ago

  • In our company we would like this issue too.
  • We use time entries very hardly, and for now to move time entries, first we move it to another issue brother to the first one an inside the project (this is possible), and then we move the issue to another project or we make it daughter to another issue on the second project.

Also available in: Atom PDF