Hi,
I want to make new features for my Jira plugin.
I do not know how to list all jira software boards and also all bean names for GreenHopper.
With this code I get NullPointer:
RapidView.RapidViewBuilder rapidView = new RapidView.RapidViewBuilder();
try {
ServiceOutcome<Set<Project>> allProjects = getProjectRapidViewService().findProjectsByRapidView(targetUser, rapidView.sprintSupportEnabled(true).build());
projects = allProjects.getValue();
pages = projects.size();
}
catch (InvalidSyntaxException e)
{
System.out.println("Got an SearchException: " + e.getCause());
}
for (Iterator iterator = projects.iterator(); iterator.hasNext();) {
Project project = (Project) iterator.next();
JSONArray children = new JSONArray();
try {
obj = new JSONObject()
.put("Id", project.getKey())
.put("Name",project.getName());
arr.put(obj);
//arr.put(depencies);
} catch (JSONException jerr) {
jerr.printStackTrace();
System.out.println("Got an JSONException: " + jerr.getCause());
}
}
NullPointer possible comes because my Db Collation if wrongly set:
Thanks,
Matti