Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] connecting JIRA using Mylyn

>  JiraRpcClient jiraRpcClient = new JiraRpcClient(JIRA_URI, false, USER_NAME,
>      PASSWORD, Proxy.NO_PROXY, null, null); 
>
>  Project[] projects = jiraRpcClient.getProjects();
>  for (Project project : projects) {
>    System.out.println(project.getDescription()); 
>  } 

JiraRpcClient internally caches the list of projects and other details of the 
repository configuration. You need to either call getProjectsRemote() or 
invoke refreshDetails(new NullProgressMonitor()) prior to getProjects().

The JIRA core API has been tailored towards the requirements for Mylyn. It 
might not cover more general use-cases or provide self-explanatory method 
names as it should. Please don't hesitate to file bug reports if you have 
suggestions for improvements. 

Steffen

-- 
Steffen Pingel - steffenp@xxxxxx - http://steffenpingel.de


Back to the top