Project

General

Profile

Actions

Patch #3877

closed

Copy issue status when issue is copied

Added by Anton Ivanov over 14 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Projects
Target version:
-
Start date:
2009-09-16
Due date:
% Done:

0%

Estimated time:

Description

Currently, when a project is copied (using 'copy' link in the Administration view), the issues are copied, but the statuses of the issues are not: all issues end up in the default New status. This is undesirable: issues that are closed, etc in the source project should retain their status in the copied project. The proposed one-liner patch implements this.

Assigning to the author of the copy functionality.


Files

copy_issue_status.diff (411 Bytes) copy_issue_status.diff Patch to implement copying of issue status Anton Ivanov, 2009-09-16 00:54

Related issues

Related to Redmine - Feature #886: Copy A ProjectClosedEric Davis2008-03-18

Actions
Related to Redmine - Feature #16959: Default status of copying closed issueClosed

Actions
Actions #1

Updated by Eric Davis over 14 years ago

  • Status changed from New to 7

I might not be able to use this patch because that method (Issue#copy_from) is used by other parts of Redmine also. If I can't change the status there I could put something similar into Project#copy, which would have a similar result.

Actions #2

Updated by Anton Ivanov over 14 years ago

Thanks for looking into this.

I defer to your judgement, but shouldn't Issue#copy_from copy the status regardless of where it is called from? Seems like code that requires a specific status on issues it copies should ensure the condition is satisfied by simply setting it.

Actions #3

Updated by Jean-Philippe Lang over 14 years ago

  • Status changed from 7 to Closed

Actually, there was no side effect. #copy_from was used in IssuesController#new but the issue status was set after this call. Added a test that ensure that issue status is now copied.
Change committed in r3075.

Actions #4

Updated by Maik Lindner almost 10 years ago

Conflict with #1551

Actions #5

Updated by Toshi MARUYAMA almost 10 years ago

  • Related to Feature #16959: Default status of copying closed issue added
Actions

Also available in: Atom PDF