Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » BugzillaTask to RepositoryTaskData? (Tutorial outdated)
BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #47334] Fri, 18 April 2008 16:48 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
>
Re: BugzillaTask to RepositoryTaskData? (Tutorial outdated) [message #589201 is a reply to message #47334] Thu, 24 April 2008 16:23 Go to previous message
Robert Elves is currently offline Robert ElvesFriend
Messages: 87
Registered: July 2009
Member
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
>
Previous Topic:General overview of Task history?
Next Topic:Is it possible to report a bug from the Problems view?
Goto Forum:
  


Current Time: Fri Apr 26 01:19:24 GMT 2024

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

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

Back to the top