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

Bug 189788

Summary: [web connector] Allow more task properties to be set using fixed mappings
Product: z_Archived Reporter: Jörg Thönnes <jtk499>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P3 CC: javadev, Michal.Tkacz, vermersch+eclipse, villane
Version: 2.0 M2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 189787    
Bug Blocks:    

Description Jörg Thönnes CLA 2007-05-29 17:08:02 EDT
Our bug database provides a status: "open", "done", "cancelled"

As in bug 189787: [web connector] Make regexp parsing of web pages more flexible
I could create a input form field like

Task Status: ${query.group.4}

but in addition I have to provide a mapping table for Mylar:

	"open" -> Incomplete
	"done" -> Complete
	"canceled" -> Complete

This could also be used for priority mappings.

Alternatively, the decision if complete could use a regexp which matches or not.

Personally, I would like to see the completion status fetched from the web connector rather soon.
Comment 1 Eugene Kuleshov CLA 2007-05-29 18:53:28 EDT
(In reply to comment #0)
> Personally, I would like to see the completion status fetched from the web
> connector rather soon.

Joerg, do you fancy to provide a patch?
Comment 2 Jörg Thönnes CLA 2007-05-30 03:04:14 EDT
 (In reply to comment #1)
> (In reply to comment #0)
> > Personally, I would like to see the completion status fetched from the web
> > connector rather soon.
> Joerg, do you fancy to provide a patch?

I knew you would ask that ;-) 

Eugene, to be honest: I would love to contribute, being an experienced Java programmer and
enthusiastic Eclipse + Mylar user. But I did not do any Eclipse plugin programming so far and
did not jump over the barrier to start it yet. My time is very limited due to business and personal
involvements, so I would like to have some support setting up a dev environment for the web
connector alone. Maybe we could discuss this offline (e-mail).

Cheers, Jörg

Comment 3 Eugene Kuleshov CLA 2007-05-30 11:06:57 EDT
Joerg, Mylar Contributor Reference wiki page is the good starting point http://wiki.eclipse.org/index.php/Mylar_Contributor_Reference
You also welcome to ask questions in mylar-dev mailing list. See project home page to subscribe info. http://www.eclipse.org/mylar/

For the most part you will probably have to deal with WebRepositoryConnector, which isn't really bound to Eclipse stuff. So, you should be able to make standalone tests for it.
Comment 4 Jörg Thönnes CLA 2007-05-31 16:50:22 EDT
Eugene, please provide some Mylar context as a starting point. Thanks.
Comment 5 Eugene Kuleshov CLA 2007-05-31 17:24:31 EDT
Joerg, please use context from bug 189787. I suppose we need to resolve it before starting on this one.

I am also wondering if we can avoid to have UI for mapping and just encode mapping details into query. Perhaps use something similar to "choice" in MesageFormat : (${task.status,closed#Complete|open#In Progress})

See http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
Comment 6 Erkki Lindpere CLA 2007-07-17 03:46:55 EDT
Considering how complex the queries can already be, I think the choice format wouldn't add too much complexity. But if someone were modifying the default queries often, it could be annoying to do that if there mapping info is there all the time. It seems like something that should be set ONCE per repository, not per query.
Comment 7 Eugene Kuleshov CLA 2007-07-30 11:39:37 EDT
*** Bug 198228 has been marked as a duplicate of this bug. ***
Comment 8 Vincent Vermersch CLA 2007-07-30 11:56:08 EDT
(In reply to comment #7)
> Problem with dates is that they would require to specify custom data formats
> because these attributes have Date type in AbstractTask.

They would require to specify custom data formats in Mylyn connector ? Or in web interface ?
For other fields such as estimated and elapsed time does it need such change.

Big thanks

Comment 9 Eugene Kuleshov CLA 2007-07-30 12:30:04 EDT
Actually there is no elapsed time in Mylyn's data structures. As for estimated time, it need to be in hours (int value in the AbstractTask), but on the web UI it could be shown as 10h, 2d, 5 weeks, etc. Hence it does require some kind of conversion.

All formats and conversion details need to be specified somewhere in the connector configuration.
Comment 10 Eugene Kuleshov CLA 2007-08-13 03:10:16 EDT
*** Bug 199693 has been marked as a duplicate of this bug. ***
Comment 11 George Lindholm CLA 2007-08-14 14:05:58 EDT
I made a request for  ({Priority}.+?) and ({Module|Component|...}.+?) named groups and was pointed to this bug.

I also have similar problem with ({Status}.+?) since it can only be "Complete" and "Incomplete". Our
web based Sharepoint systems has the Status values: "Open", "Closed", "Resolved", "Inactive" that I would like
to be able to access
Comment 12 Eugene Kuleshov CLA 2007-08-14 14:32:54 EDT
Here is the list of patterns that currently considered as "complete" - "completed|fixed|resolved|invalid|verified|deleted|closed|done", everything else will be "incomplete".
Comment 13 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