Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 152211

Summary: allow local tasks to be promoted to repository tasks
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: david_syer, eclipse, ekuleshov, gerry.spm+eclipsebug, mjmeijer, nhapke, robert.elves, wmitsuda
Version: unspecified   
Target Milestone: 3.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
plugin.xml patch
none
mylyn/context/zip
none
mylyn/context/zip none

Description Mik Kersten CLA 2006-07-28 16:16:42 EDT
Action should be something like: Convert to Repository Task. 
* copies summary
* gets Description from notes
* copies priority (if possible)
* copies URL (maybe)
* attaches context
* provides option to delete local task
Comment 1 Willian Mitsuda CLA 2006-07-28 20:24:12 EDT
Good stuff. It should be helpful when you work on some feature, and only later you decide to submit the patch, creating the bug report.

I only think it shouldn't force you to create a bug report using mylar to be able to "transfer" the context information between tasks.

I should be able to create the task using the web/other client and then associate it with the local task.
Comment 2 Mik Kersten CLA 2006-07-28 20:43:22 EDT
I know what you mean.  Note that we have copying and pasting of task contexts as an orthogonal enhancement: bug 126237
Comment 3 Eugene Kuleshov CLA 2006-10-24 04:55:39 EDT
BTW, with alternative synchronization proposal this may not be an issue and would allow to have the same task in more then one repository (i.e. company private and public).
Comment 4 Gerry CLA 2006-12-20 09:34:01 EST
Great suggestion Robert.
This would be so useful for me atm... if only.
Comment 5 Mik Kersten CLA 2007-07-26 22:35:05 EDT
*** Bug 197774 has been marked as a duplicate of this bug. ***
Comment 6 Mik Kersten CLA 2007-07-26 22:35:52 EDT
There continues to be interest in this feature.
Comment 7 Shawn Minto CLA 2007-07-27 11:40:25 EDT
I would also like the ability to convert a repository task to another repository task.  This would be useful when a bug is filed against something like Mylyn's Bugzilla connector, but it turns out to be a Bugzilla bug and it should be submitted to them.  The more general approach for this would be to allow a user to convert any task to any other task (local -> repository, repository->local and repository->repository).
Comment 8 Steffen Pingel CLA 2008-01-22 13:44:48 EST
This functionality could be support through Operations -> Clone Task. The menu is currently disabled for local tasks but it should be fairly straight forward to implement that. Thoughts?
Comment 9 Mik Kersten CLA 2008-01-22 17:01:27 EST
+1  Nice and simply approach to supporting this.  If it's as quick a fix as that we could consider for 2.3.
Comment 10 Steffen Pingel CLA 2008-01-22 17:24:34 EST
Maarten, would you be interested in providing a patch?
Comment 11 maarten meijer CLA 2008-01-23 08:39:05 EST
(In reply to comment #10)
> Maarten, would you be interested in providing a patch?
> 
I'm currently on a rather busy project, but will look into it to see whether the Clone Task can be generalized to handle local tasks as well. What is the 2.3 time frame? 
Comment 12 Frank Becker CLA 2008-01-23 10:24:24 EST
 (In reply to comment #11)
> (In reply to comment #10)
> > Maarten, would you be interested in providing a patch?
> >
> I'm currently on a rather busy project, but will look into it to see whether the
> Clone Task can be generalized to handle local tasks as well. What is the 2.3
> time frame?
Maarten, if you don't have the time to do this before 2.3 I can look at this.
Comment 13 maarten meijer CLA 2008-01-23 11:39:21 EST
When we remove the suppress showing for local tasks see comment 19 in bug 161646: support for Clone this bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=161646#c19 put in by Mik the action is enabled for all task types.
TaskUiUtil.openNewTaskEditor() allows choosing local as well. The net effect is that this bug is resolved by taking away limitations in plugin.xml.
Comment 14 maarten meijer CLA 2008-01-23 11:44:21 EST
Created attachment 87669 [details]
plugin.xml patch

Remove disable for Local Tasks
Comment 15 maarten meijer CLA 2008-01-23 11:44:27 EST
Created attachment 87670 [details]
mylyn/context/zip
Comment 16 Steffen Pingel CLA 2008-01-23 13:40:55 EST
 (In reply to comment #11)
> I'm currently on a rather busy project, but will look into it to see whether the
> Clone Task can be generalized to handle local tasks as well. What is the 2.3
> time frame?

No problem Maarten. This bug is not high priority. There are still more than four weeks of time until the Mylyn 2.3 release on Feb. 27. 

I think the patch will need some additional work. When I tried to clone a local task the priority, description and URL were not cloned to the new task. It would also be valuable to have a test case that verifies that properties of local tasks are cloned correctly. 

Maarten, let me know if you want to look at that.

Frank, thanks for the offer to help out. In case we don't get this resolved I'll hand it over to you :).

Comment 17 Mik Kersten CLA 2008-01-23 13:42:34 EST
I took that out because we were not properly formatting the clone of local tasks.  Will take a quick look now.
Comment 18 Mik Kersten CLA 2008-01-23 13:58:19 EST
I made clone work properly for local tasks by properly handling missing key/IDs and adding the Notes to the description.  Thanks for patch removing the restriction Maarten, I applied it.  

There could be additional feature requests for this functionality, as per my listing in the description.  But the core features are there now, the rest can be done manual, and we can take additional requests for automation.
Comment 19 Mik Kersten CLA 2008-01-23 13:58:25 EST
Created attachment 87684 [details]
mylyn/context/zip
Comment 20 maarten meijer CLA 2008-01-23 14:28:55 EST
 (In reply to comment #18)
> I made clone work properly for local tasks by properly handling missing key/IDs
> and adding the Notes to the description.  Thanks for patch removing the
> restriction Maarten, I applied it.
You're welcome, too small to add to my total on http://www.eclipse.org/mylyn/contributors/ I presume ;-)
Comment 21 maarten meijer CLA 2008-01-24 08:52:23 EST
 (In reply to comment #18)
> I made clone work properly for local tasks by properly handling missing key/IDs
> and adding the Notes to the description.  Thanks for patch removing the
> restriction Maarten, I applied it.
I was still thinking about how to make LocalTask behave exactly like a RepositoryTask so that special casing is not necessary.
Is that still an interesting option for 3.0?
Comment 22 Mik Kersten CLA 2008-01-31 22:20:09 EST
(In reply to comment #20)
> You're welcome, too small to add to my total on
> http://www.eclipse.org/mylyn/contributors/ I presume ;-)

Yes, too small this time around because this required a bunch of other work.  But consider my owing you one ;)  Also note that I updated the stats today and yours are climbing :)  http://www.eclipse.org/mylyn/contributors/  Also note my comment on bug 214525.