public Issue getIssue(String issueKey) { try { return jiraRestClient.getIssueClient().getIssue(issueKey).get(timeout, TimeUnit.SECONDS); } catch (Exception e) { LOGGER.log(WARNING, "jira rest client get issue error. cause: " + e.getMessage(), e); return null; } }
private com.atlassian.jira.rest.client.api.domain.Issue getIssue(String trackerId) throws NotFoundException { try { return restClient.getIssueClient().getIssue(trackerId).get(); } catch (Exception e) { throw new NotFoundException(e); } }
.getIssue(issue.getKey(), Arrays.asList(new Expandos[] { Expandos.CHANGELOG}))
@Override public Issue getIssue(URL url) throws NotFoundException { String issueKey = getIssueKey(url); List<IssueRestClient.Expandos> expandos = createExpandos(); try { checkHost(url); com.atlassian.jira.rest.client.api.domain.Issue issue = restClient.getIssueClient().getIssue(issueKey, expandos) .get(); return WRAPPER.jiraIssueToIssue(url, issue); } catch (InterruptedException e) { throw new NotFoundException("Something interrupted the execution when trying to retrieve issue " + issueKey, e); } catch (ExecutionException e) { throw new NotFoundException("Unable to retrieve issue with id: " + issueKey , e); } }
private Ticket getInternal(String ticketId, JiraRestClient jira) throws PluginException { // w00t Issue issue; try { issue = jira.getIssueClient().getIssue(ticketId).get(); } catch (InterruptedException|ExecutionException e) { throw new PluginException("Failed to get issue with id: " + ticketId, e); } if (issue != null) { Ticket ticket = new Ticket(); ticket.setId(issue.getKey()); ticket.setModificationTimestamp(String.valueOf(issue.getUpdateDate().toDate().getTime())); ticket.setSummary(issue.getSummary()); ticket.setDetails(issue.getDescription()); ticket.setState(getStateFromStatusName(issue.getStatus().getName())); return ticket; } else { return null; } }
private Ticket getInternal(String ticketId, JiraRestClient jira) throws PluginException { // w00t Issue issue; try { issue = jira.getIssueClient().getIssue(ticketId).get(); } catch (InterruptedException|ExecutionException e) { throw new PluginException("Failed to get issue with id: " + ticketId, e); } if (issue != null) { Ticket ticket = new Ticket(); ticket.setId(issue.getKey()); ticket.setModificationTimestamp(String.valueOf(issue.getUpdateDate().toDate().getTime())); ticket.setSummary(issue.getSummary()); ticket.setDetails(issue.getDescription()); ticket.setState(getStateFromStatusName(issue.getStatus().getName())); return ticket; } else { return null; } }
issue = jira.getIssueClient().getIssue(ticket.getId()).get(); } catch (InterruptedException | ExecutionException e) { throw new PluginException("Failed to get issue with id:" + ticket.getId(), e);
issue = jira.getIssueClient().getIssue(ticket.getId()).get(); } catch (InterruptedException | ExecutionException e) { throw new PluginException("Failed to get issue with id:" + ticket.getId(), e);