[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.mylar] Re: How to get information on one single bug?
|
- From: Remy Suen <remy.suen@xxxxxxxxx>
- Date: Mon, 02 Apr 2007 14:46:59 +0000
- Newsgroups: eclipse.technology.mylar
- Organization: EclipseCorner
- User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
Thank you Robert, that link did it.
For anyone that's hitting this from Google, the basic code is as follows:
BugzillaRepositoryConnector connector = new BugzillaRepositoryConnector();
connector.init(new TaskList());
TaskRepository repository = new TaskRepository(
BugzillaCorePlugin.REPOSITORY_KIND,
"https://bugs.eclipse.org/bugs/");
try {
AbstractRepositoryTask task = connector.createTaskFromExistingKey(
repository, "150000"); // bug number
} catch (CoreException e) {
e.printStackTrace();
}
Regards,
Rem
On Mon, 02 Apr 2007 11:01:51 -0700, Robert Elves wrote:
> Remy, have a look at:
>
> http://wiki.eclipse.org/index.php/Mylar_Integrator_Reference#Bugzilla_API_.28org.eclipse.mylar.bugzilla.core.29_HEADLESS
>
> -Rob
>
> Remy Suen wrote:
>> Hi,
>>
>> I've hacked around with the Mylar code and was able to figure out how to
>> query bugzilla as if I was using the query.cgi page but have been unable
>> to get anywhere in terms of getting information about one single bug.
>>
>> I know I can iterate over my query's QueryHitCollector and get each
>> individual AbstractQueryHit and call public get methods from it, but
>> what I want is the functionality to just pass in a bug # and be able to
>> get a returned AbstractRepositoryTask.
>>
>> What is the shortest (and crudest?) method possible to achieve this with
>> the minimal lines of code? As you can tell, I am already using the
>> internal Bugzilla classes, so I wouldn't mind making other internal API
>> calls if necessary.
>>
>> Thank you,
>> Regards,
>> Remy