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

Bug 283525

Summary: exported tasks/queries should include private notes
Product: z_Archived Reporter: Tomasz Zarna <tomasz.zarna>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 Keywords: helpwanted
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 248364    

Description Tomasz Zarna CLA 2009-07-15 06:32:33 EDT
Here is my case:
I've just moved all my .mylyn data scattered across multiple workspaces to a single directory by changing the Data directory on the Task pref page and importing bunch of queries. What I realized after doing so is that I lost all private notes while exporting queries (usually they're rubbish but some of them contained work-in-progress patches). I had to switch back to the original .mylyn folder (per workspace) copy the note and then switch again to the shared data directory.
Comment 1 Steffen Pingel CLA 2009-07-15 11:37:05 EDT
Yes, including the notes and other information such as contexts would be helpful.
Comment 2 Tomasz Zarna CLA 2009-07-16 05:11:03 EDT
I believe exporting private stuff related to a task should be optional. There are cases when we don't want to share it e.g. when putting an exported query on a public site. 
Comment 3 Tomasz Zarna CLA 2012-05-24 11:21:44 EDT
(In reply to comment #1)
> Yes, including the notes and other information such as contexts would be helpful.

Should they be stored as a part of the QueryHit node?
Comment 4 Steffen Pingel CLA 2012-05-24 14:59:47 EDT
(In reply to comment #3)
> (In reply to comment #1)
> > Yes, including the notes and other information such as contexts would be
> helpful.
> 
> Should they be stored as a part of the QueryHit node?

That information is kept on the ITask object but it's likely that some of it will be migrated to a file-based store since there is no need to keep all of it in memory.
Comment 5 Tomasz Zarna CLA 2012-05-25 03:35:46 EDT
Right, I was more asking about where the info should be put in a resulting XML. I noticed the notes are included when exporting an individual tasks, but when doing the same for a query there're gone. In the latter case, tasks are saved as QueryHit nodes:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<TaskList Version="2.0">
	<Query ConnectorKind="bugzilla" Handle="My Mylyn" LastRefreshTimeStamp="..." Name="Mylyn" QueryString="..." RepositoryUrl="https://bugs.eclipse.org/bugs">
		<QueryHit Handle="https://bugs.eclipse.org/bugs-261940"/>
		...
	</Query>
</TaskList>
Comment 6 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn