BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #47334] |
Fri, 18 April 2008 16:48 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: Michail.Greshishchev.klocwork.com
Hello,
The Mylyn wiki for headless use has the following example:
// Post modified report to repository
connector.getTaskDataHandler().postTaskData(repository,
task.getTaskData());
connector is a BugzillaConnector class.
task is a BugzillaTask class.
However, in the latest version of Mylyn task no longer has the
getTaskdata() method.
My question is, how do I convert a BugzillaTask into RepositoryTaskData so
I can send it to a Bugzilla bug tracking database via postTaskData()?
Thank you
|
|
|
Re: BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #47471 is a reply to message #47334] |
Thu, 24 April 2008 16:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: rob.elves.eclipse.org
If you've already synced the task, you can get the task data for it from
the TaskDataManager.
TasksUiPlugin.getTaskDataManager().getNewTaskData(String repositoryUrl,
String id);
Then modifiy the task data as you see fit then submit it via postTaskData().
If this doesn't clear things up, please let me know and I can elaborate.
-Rob
Michail Greshishchev wrote:
> Hello,
>
> The Mylyn wiki for headless use has the following example:
>
> // Post modified report to repository
> connector.getTaskDataHandler().postTaskData(repository,
> task.getTaskData());
>
> connector is a BugzillaConnector class.
> task is a BugzillaTask class.
>
> However, in the latest version of Mylyn task no longer has the
> getTaskdata() method.
>
> My question is, how do I convert a BugzillaTask into RepositoryTaskData
> so I can send it to a Bugzilla bug tracking database via postTaskData()?
>
> Thank you
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04058 seconds