Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-dev] How to store data for a Mylyn task

Hi all,

Ever since I stopped purchasing a Tasktop Dev license (sorry guys), I've been missing the time tracking feature that it provided. However that was the only thing I had any use for, so I could not defend the cost of the license. For quite a while I've been entertaining the idea to write something that serves a similar purpose, at least for my needs. So I got started a couple of evenings back and are making good progress. You really made this to be extensible :-) However I'm not familiar with the code, and there aren't too many comments in the public API, so I've had to do some backtracking when I found what I should be doing instead. I still have a few concerns that I have not been able to resolve so I'm wondering if you could help me out:

1) I do not want the time tracking data to be pushed back to the server, and it appears that this is what will happen when I use TaskData and TaskAttribute. So I'm using ITask.setAttribute(String,String) for a simple key-value structure, however I'm not confident whether or not this is a good idea.

2) Similarly I use setProperty(String,String) in TaskRepository to store which field should be used for grouping in the "Workweek" view. This view lists all tasks with data for a given week, typically grouped by "project" or "component". For JIRA (and possibly other repository types) I must be able to select what is the grouping attribute. Is it OK to use a property for this or should I do something else?

3) This code appears to be very slow:

TaskData taskData = TasksUi.getTaskDataManager().getTaskData(task);
TaskRepository taskRepository = taskData.getAttributeMapper().getTaskRepository();

I need both the "taskData" and "taskRepository" properties further on. Is there a clever trick to make it faster?

Best regards,
Torkild

PS: Hopefully I'm not stepping on anyones toes doing this.

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top