Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » how to get the ITask object from taskId
icon5.gif  how to get the ITask object from taskId [message #633458] Mon, 18 October 2010 01:48 Go to previous message
nick tan is currently offline nick tan
Messages: 56
Registered: July 2009
Member
hi, folks

i'm recently developing a mylyn starteam connector to fetch tasks/CRs.

i notice that in the AbstractRepositoryConnector, i need to implement the method:
org.eclipse.mylyn.tasks.core.AbstractRepositoryConnector.getTaskData(TaskRepository, String, IProgressMonitor)

which means let me to update the TaskData from repository? generally, query latest details from server?

here's a taskId as String as the argument, but from my side, i cannot get the task URl from single taskId, i need context info, like IRepositoryQuery...

i found that this method signature is designed for http-like query, i mean both bugzilla, jira, trac all has a uniform url for querying task detail from task Id...

i notice that, ITask object will be persisted into task.xml.zip, and its attributes as well
so i'm thinking, is there any way to get the ITask object from taskId, and thus i can get some context info from the ITask object:
org.eclipse.mylyn.tasks.core.IAttributeContainer.getAttribute(String)

(ITask extends the IAttributeContainer interface)

anyone can help?

--
Thanks & Best Regards
Nick

[Updated on: Mon, 18 October 2010 02:35]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Previous Topic:Can I use WikiText for the Trac Wiki rather than the tickets
Next Topic:[CDT] Mylyn automatically add all includes path in the context of the task
Goto Forum:
  


Current Time: Tue May 21 22:21:03 EDT 2013

Powered by FUDForum. Page generated in 0.02009 seconds