String issueUrl = String.format("%s/rest/project/issues/%s?filter=%s", url, project, URLEncoder.encode(filter, "UTF-8"));
log.debug("Loading issues from " + issueUrl);
Response response = getHttpClient().prepareGet(issueUrl)
.addHeader(AUTHORIZATION, BASIC + " " + authorization)
.execute()
.get();
// First check the version exists
if (response.getStatusCode() == 200) {
SAXBuilder builder = new SAXBuilder();
try {
Document doc = builder.build(response.getResponseBodyAsStream());
List<Element> issues = doc.getRootElement().getChildren("issue");
for (Element issue : issues) {
String logLine = issueFunction.apply(issue);