Hi,

I've managed getting the data for all the mentioned attributes except
Assignee.

I've used the following code:

 

      TaskRepository rep = getRepository();

      BugzillaRepositoryConnector connector = getConnector();

      // this must be done because there is a mylyn bug that through an

      // exception if client

      // is not initialized this call will initialized the client
manager, if

      // it is null.

      BugzillaClientManager c = connector.getClientManager();

            

      RepositoryConfiguration repConf =
connector.getRepositoryConfiguration(rep.getUrl());

      List<String> severities = repConf.getSeverities();

      List<String> statusValues = repConf.getStatusValues();

      List<String> products = repConf.getProducts();

 

Any Help retrieving the last Attribute value list(Assignee) would be
appreciated ! 

Michael.

 

 

 

From: Shitrit, Michael 
Sent: Tuesday, April 27, 2010 11:57 AM
To: '[email protected]'
Subject: Retrieving Attribute Value List API

 

Hi All,

I'm looking for a mylyn Java  API  which allows to get Bugzilla 

Attribute value list.

For example: suppose I want to get Possible values for the "Severity"

Attribute: I'd except to send to it "Severity" (or other constant) and 

get a container with the proper values (i.e blocker, critical , major,

etc..)

The Attributes that I need the API for are: Product, Assignee, Severity
and Status.

Here is a code snippet of what I've tried (without success -
neededValues is empty):

 

      BugzillaAttributeMapper mapper = new BugzillaAttributeMapper(rep,
connector);

      TaskAttribute sevAttribute = new TaskAttribute(taskData.getRoot(),
BugzillaAttribute.BUG_SEVERITY.getKey());

      Map<String, String> neededValues = sevAttribute.getOptions();

 

I'd Appreciate any help with this Issue.

Regards,

Michael.

 

_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators

Reply via email to