Priority is the only attribute that has a pre-defined range of values and requires an explicit mapping. Generally all attributes are optional and connectors are free to set any values. Some functionality of the framework does require certain types though, e.g. the due date attribute is expected to be convertible to a date through AttributeMapper. You can take a look at DefaultTaskSchema for a list of attributes that are mapped by the framework and their default types.
TaskAttribute.TASK_KIND can be any text. JIRA uses "Defect" or "Task" for instance depending on the type of an issue. TaskAttribute.STATUS can by any text that describes the state of a bug, e.g. "NEW" or "RESOVLED FIXED". Note that the actual completion state of a task is determined based on the TaskAttribute.DATE_COMPLETION attribute and not the status. Steffen On Sun, Jan 3, 2010 at 1:53 PM, Raymi <[email protected]> wrote: > Hi there, > > I'm writing a custom connector for Mylyn. I was quite successful so far > (thanks to the Wiki and the Trac Connector sources). For the mapping of the > attributes I use an AttributeMapper. But as far as I understand, this only > maps the attribute names. If I have to map attribute values, I have to > implement a custom TaskMapper (as seen in the Trac Connector). However, I'm > not sure, to what values for the Mylyn TaskAttribute I have to map. > > For example I found out, that I have to map my (custom) priority attribute > to Mylyn's attribute TaskAttribute.PRIORITY and the values to the enum > ITask.PriorityLevel. > > Is there a list of all Mylyn attributes and the range of possible values? In > particular, I'd be interested to what values are valid for the attributes > TaskAttribute.TASK_KIND and TaskAttribute.STATUS. > > Thanks for your help, > > Dominik > _______________________________________________ > mylyn-integrators mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/mylyn-integrators > -- Steffen Pingel Committer, http://eclipse.org/mylyn Senior Developer, http://tasktop.com _______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
