@NotNull @Override protected List<JiraIssue> parseIssues(String response) { JiraResponseWrapper.Issues<JiraIssueApi20Alpha1> wrapper = JiraRepository.GSON.fromJson(response, ISSUES_WRAPPER_TYPE); List<JiraIssueApi20Alpha1> incompleteIssues = wrapper.getIssues(); List<JiraIssue> updatedIssues = new ArrayList<JiraIssue>(); for (JiraIssueApi20Alpha1 issue : incompleteIssues) { try { JiraRestTask task = findTask(issue.getKey()); if (task != null) { updatedIssues.add(task.getJiraIssue()); } } catch (Exception e) { LOG.warn("Can't fetch detailed info about issue: " + issue.getKey()); } } return updatedIssues; }
@Override protected JiraIssue parseIssue(String response) { return JiraRepository.GSON.fromJson(response, JiraIssueApi20Alpha1.class); }