After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341504 - Data entry: copy/paste selected tasks
Data entry: copy/paste selected tasks
Status: RESOLVED OBSOLETE
Product: planner
Classification: Other
Component: General
0.13
Other All
: Low enhancement
: ---
Assigned To: planner-maint
planner-maint
: 139640 483028 529314 531815 602876 612278 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-05-12 02:44 UTC by Steve Kelem
Modified: 2021-06-09 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XSLT stylesheet which regenerates task ID numbers (561 bytes, application/xml)
2008-05-15 14:17 UTC, Antonio García
  Details
an implementation (18.95 KB, patch)
2010-01-21 13:51 UTC, Caolan McNamara
none Details | Review
update to apply against 0.14.5 (18.97 KB, patch)
2011-07-11 10:04 UTC, Caolan McNamara
none Details | Review
Addition to Caolan's patch (18.99 KB, patch)
2012-05-08 13:28 UTC, Paul Phillips
none Details | Review

Description Steve Kelem 2006-05-12 02:44:32 UTC
In the Gantt chart, when entering a lot of similar tasks, it would be easier if
I could enter a few of them, select them, then copy, paste to create another
copy.  I would then have to do some adjustments, but cut & paste would save me a
LOT of data entry work!  (E.g., creating 16 copies would take only 4 cut &
pastes, or 1 copy and 16 pastes.)

Other information:
Comment 1 Maurice van der Pot 2008-04-22 17:47:17 UTC
*** Bug 529314 has been marked as a duplicate of this bug. ***
Comment 2 Maurice van der Pot 2008-04-27 19:36:01 UTC
*** Bug 483028 has been marked as a duplicate of this bug. ***
Comment 3 Maurice van der Pot 2008-05-06 19:42:08 UTC
*** Bug 531815 has been marked as a duplicate of this bug. ***
Comment 4 Antonio García 2008-05-15 14:17:50 UTC
Created attachment 110957 [details]
XSLT stylesheet which regenerates task ID numbers
Comment 5 Antonio García 2008-05-15 14:19:07 UTC
Comment on attachment 110957 [details]
XSLT stylesheet which regenerates task ID numbers

You can always do a manual copy&paste with your favorite editor, and then regenerate the task IDs with this stylesheet, for example. Just use xsltproc:

xsltproc fix-task-sequence-planner.xslt input-document.planner > final-document.planner
Comment 6 Alexandre Franke 2009-05-19 13:50:24 UTC
*** Bug 139640 has been marked as a duplicate of this bug. ***
Comment 7 Alexandre Franke 2009-11-24 23:17:05 UTC
*** Bug 602876 has been marked as a duplicate of this bug. ***
Comment 8 Caolan McNamara 2010-01-21 13:51:46 UTC
Created attachment 151939 [details] [review]
an implementation

Here's an implementation of copy, cut and paste of tasks. A paste will always append the copied tasks to the current cursor location (as opposed to overwriting selected tasks) which I think is the best approach.

The task view allows multi select of unrelated tasks, so the paste of such a copy attempts to simply insert the tasks and then try and indent them to their original indent + the current insertion point indent, which gives the same hierarchy for the normal case, and a reasonable one for a multi-select of unrelated tasks.

What doesn't get copied in this implementation is to whom the task is assigned, I'm not sure if we want that or not. But if we do then (given that the tasks might be copied between unrelated projects) the best thing is likely to attempt to reassign if an assignee with the same name as the original exists in the new.
Comment 9 Alexandre Franke 2010-03-09 15:03:47 UTC
*** Bug 612278 has been marked as a duplicate of this bug. ***
Comment 10 Caolan McNamara 2011-07-11 10:04:18 UTC
Created attachment 191690 [details] [review]
update to apply against 0.14.5
Comment 11 Paul Phillips 2012-04-23 00:11:26 UTC
Thanks Caolan.  I don't suppose you could make an updated patch for latest from head?  I was going to try it out...
Comment 12 Paul Phillips 2012-04-25 00:03:37 UTC
Oh, and it you do, please make it using git's "format patch" feature.
Thanks!
Paul.
Comment 13 Paul Phillips 2012-04-25 12:31:27 UTC
I managed to get the patch working, and it seems to work ok, except not as I'd expect.  It seems to insert the copied item in an odd spot.

If the selected item is a leaf node, it creates as a subtask.
If a parent node, it seems to locate that last leaf node in that part of the tree and add as a subtask to that leaf node.

I'd expect it to just add as a new task below rather than a sub task.
Comment 14 Paul Phillips 2012-05-08 13:28:38 UTC
Created attachment 213666 [details] [review]
Addition to Caolan's patch
Comment 15 Paul Phillips 2012-05-08 13:30:08 UTC
Comment on attachment 213666 [details] [review]
Addition to Caolan's patch

In Git format and against relatively up-to-date code base.  Paste's at same level instead of one level down.
Comment 16 GNOME Infrastructure Team 2021-06-09 20:35:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/World/planner/-/issues/105.