Patch #36823

Allow to import time entries for issues in different projects

Added by Jens Krämer 2 months ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Marius BALTEANU% Done:

0%

Category:Importers
Target version:5.1.0

Description

As it is now, the time entry import only allows to import time entries for a single, pre-selected project. Because time entries can only be imported for already existing issues (which in turn already belong to a project), by definition that pre-selected project is only relevant for time entries that are not attached to any issue.

The attached patch that was extracted from Planio allows to import time entries for issues across different projects. This is achieved simply by ignoring the user-selected project for those rows where an issue id is present, letting the existing logic in TimeLogEntry#safe_attributes= determine the project id.

This is somewhat related to #25808.

0001-allow-imported-time-entries-to-override-the-selected.patch Magnifier (2.41 KB) Jens Krämer, 2022-03-22 12:04

Associated revisions

Revision 21522
Added by Marius BALTEANU about 1 month ago

Allow imported time entries to override the selected project with the actual project of their issue (#36823).

Patch by Jens Krämer.

History

#1 Updated by Marius BALTEANU 2 months ago

  • Target version set to Candidate for next major release

#2 Updated by Marius BALTEANU about 1 month ago

  • Target version changed from Candidate for next major release to 5.1.0

#3 Updated by Marius BALTEANU about 1 month ago

  • Status changed from New to Resolved
  • Assignee set to Marius BALTEANU

Feature added, thanks!

#4 Updated by Marius BALTEANU about 1 month ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF