Tabnine Logo
IssueRestClient.getIssue
Code IndexAdd Tabnine to your IDE (free)

How to use
getIssue
method
in
com.atlassian.jira.rest.client.api.IssueRestClient

Best Java code snippets using com.atlassian.jira.rest.client.api.IssueRestClient.getIssue (Showing top 8 results out of 315)

origin: jenkinsci/jira-plugin

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;
  }
}
origin: org.jboss.set/jboss-aphrodite-jira

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);
  }
}
origin: org.smartdeveloperhub.harvesters.it.backend/it-backend-core

.getIssue(issue.getKey(),
    Arrays.asList(new Expandos[] {
        Expandos.CHANGELOG}))
origin: org.jboss.set/jboss-aphrodite-jira

@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);
  }
}
origin: OpenNMS/opennms

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;
  }
}
origin: org.opennms.features/jira-troubleticketer

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;
  }
}
origin: OpenNMS/opennms

  issue = jira.getIssueClient().getIssue(ticket.getId()).get();
} catch (InterruptedException | ExecutionException e) {
  throw new PluginException("Failed to get issue with id:" + ticket.getId(), e);
origin: org.opennms.features/jira-troubleticketer

  issue = jira.getIssueClient().getIssue(ticket.getId()).get();
} catch (InterruptedException | ExecutionException e) {
  throw new PluginException("Failed to get issue with id:" + ticket.getId(), e);
com.atlassian.jira.rest.client.apiIssueRestClientgetIssue

Javadoc

Retrieves issue with selected issue key.

Popular methods of IssueRestClient

  • createIssue
    Creates new issue.
  • getTransitions
    Retrieves complete information (if the caller has permission) about transitions available for the se
  • transition
    Performs selected transition on selected issue.
  • addComment
    Adds a comment to JIRA (adding it to selected issue)
  • updateIssue
    Update an existing issue.
  • getCreateIssueMetadata
    Retrieves CreateIssueMetadata with specified filters.
  • linkIssue
    Creates link between two issues and adds a comment (optional) to the source issues.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now