Skip to main content


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 05:48 Go to next message
nick tan is currently offline nick tanFriend
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 06:35]

Report message to a moderator

Re: how to get the ITask object from taskId [message #633944 is a reply to message #633458] Wed, 20 October 2010 00:11 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
This has been discussed on the mylyn-integrators mailing list which is the
best place to ask these type of questions:
http://dev.eclipse.org/mhonarc/lists/mylyn-integrators/msg00 819.html

Steffen


nick tan wrote:

> 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.get TaskData(TaskRepository,
> String, IProgressMonitor)
>
> 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.getAttribut e(String)
> (ITask extends the IAttributeContainer interface)
>
> anyone can help?
>
> --
> Thanks & Best Regards
> Nick

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Previous Topic:mylyn test cases with out a UI?
Next Topic:Syncing task list with google tasks
Goto Forum:
  


Current Time: Fri Apr 26 06:20:13 GMT 2024

Powered by FUDForum. Page generated in 0.03465 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top