Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Download and upload attachments via API (Bugzilla)
Download and upload attachments via API (Bugzilla) [message #596194] Sat, 14 February 2009 15:31
Alexander Karnstedt is currently offline Alexander Karnstedt
Messages: 68
Registered: July 2009

I want to create Bugzilla tasks programmatically with Mylyn.

What I don't understand is: How to download attachments from Bugzilla and create
new ones.

What I got so far is (from the Mylyn Example):

TaskRepository repository = new
TaskRepository(BugzillaCorePlugin.CONNECTOR_KIND, "http://..");
BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();

TaskData taskData = connector.getTaskData(repository, "1", null);

TaskMapping taskMapping = connector.getTaskMapping(taskData);
System.out.println("Summary: " + taskMapping.getSummary());
System.out.println("Priority: " + taskMapping.getPriority());

.... and now? I can't see any way from the API how to handle attachments.

Previous Topic:Programmatic new task creation from Java into Bugzilla????
Next Topic:"Bugzilla – Suspicious Action" error encountered after Bugzilla 3.2.2 upgrade
Goto Forum:

Current Time: Thu Aug 28 01:38:24 EDT 2014

Powered by FUDForum. Page generated in 0.01748 seconds