Bug #333

duplicate command should display the ID of the created task

Added by Cory Donnelly 275 days ago. Updated 275 days ago.

Status:Closed Start:12/01/2009
Priority:Low Due date:
To:Federico Hernandez % Done:

0%

Category:core Spent time: 0.25 hours
Target version:1.8.5 - PAUL

Description

Returning the id of the source task is nice, but it would be more helpful if the newly-created task was also displayed:

$ task duplicate 62
Duplicated 62 'foo'
Duplicated 1 task

It should be consistent with the add command:

$ task add foo
Created task 85

Proposed:

$ task duplicate 62
Duplicated 62 'foo'
Duplicated 1 task
Created task 85

History

Updated by David Patrick 275 days ago

agreed

Updated by Federico Hernandez 275 days ago

  • Category set to core
  • To set to Federico Hernandez
  • Target version set to 1.8.5 - PAUL

Updated by Federico Hernandez 275 days ago

  • Status changed from New to Closed

Fixed for upcoming 1.8.5

/Fredde

[ultrafredde@cottonwood tmp]$ ./task-185 rc:x ls
Using alternate .taskrc file x

ID Project Pri Description
 1             AAA
 2             BBB
 3             CCC
 4             DDD

4 tasks
[ultrafredde@cottonwood tmp]$ ./task-185 rc:x duplicate 2
Using alternate .taskrc file x
Duplicated 2 'BBB'
Duplicated 1 task
Created task 5
[ultrafredde@cottonwood tmp]$ ./task-185 rc:x ls
Using alternate .taskrc file x

ID Project Pri Description
 1             AAA
 2             BBB
 3             CCC
 4             DDD
 5             BBB

5 tasks

Also available in: Atom PDF