Project

General

Profile

Actions

Defect #43583

open

Time spent are not transferred to a new project when a project is changed.

Added by Dmitry Seliverstov 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

If you add the time spent to an issue in project "A" and then change the project of this issue to "B", then the time spent on this task is not displayed in project "B".
Changing the project:

Spent time:

Search for time spent on a task in project B:

I connected directly to the database, found a record of the time spent in the "time_entries" table and the correct project was specified in this record (project B = 242, A = 244).

Further down the "activity_id" field, I found an entry in the "enumerations" table, but it was associated with project A (244). For some reason, this field did not change the value to 242 (project B)

After manually changing the value of the "project_id" field from 244(A) to 242(B), the time spent is being searched:

My configuration:

Environment:
  Redmine version                6.0.6.stable
  Ruby version                   3.3.8-p144 (2025-04-09) [x86_64-linux]
  Rails version                  7.2.2.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
SCM:
  Subversion                     1.14.2
  Mercurial                      6.3.2
  Bazaar                         3.3.2
  Git                            2.39.5
  Filesystem
Redmine plugins:
  additional_tags                4.0.0
  additionals                    4.0.0
  redmine_custom_workflows       3.0.0
  redmine_dashboard              2.16.0
  redmine_reporting              4.0.0
  redmine_unread_issues          1.1.0
  redmine_wiki_text_colorizer    0.1.4

Files

clipboard-202512121509-qxory.png (16.8 KB) clipboard-202512121509-qxory.png Dmitry Seliverstov, 2025-12-12 13:09
clipboard-202512121510-5twer.png (21.4 KB) clipboard-202512121510-5twer.png Dmitry Seliverstov, 2025-12-12 13:10
clipboard-202512121818-ecrxq.png (24.4 KB) clipboard-202512121818-ecrxq.png Dmitry Seliverstov, 2025-12-12 16:18
clipboard-202512121822-xjcjv.png (58.8 KB) clipboard-202512121822-xjcjv.png Dmitry Seliverstov, 2025-12-12 16:22
clipboard-202512121828-plxgb.png (46.4 KB) clipboard-202512121828-plxgb.png Dmitry Seliverstov, 2025-12-12 16:28
clipboard-202512121832-jjtvg.png (62.8 KB) clipboard-202512121832-jjtvg.png Dmitry Seliverstov, 2025-12-12 16:32
clipboard-202512121834-9vrjm.png (20.5 KB) clipboard-202512121834-9vrjm.png Dmitry Seliverstov, 2025-12-12 16:34

No data to display

Actions

Also available in: Atom PDF