Defect #43583
openTime spent are not transferred to a new project when a project is changed.
0%
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
No data to display