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

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

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

origin: jenkinsci/jira-plugin

public List<Transition> getAvailableActions(String issueKey) {
  final Issue issue = getIssue(issueKey);
  try {
    final Iterable<Transition> transitions = jiraRestClient.getIssueClient()
                                .getTransitions(issue)
                                .get(timeout, TimeUnit.SECONDS);
    return Lists.newArrayList(transitions);
  } catch (Exception e) {
    LOGGER.log(WARNING, "jira rest client get available actions error. cause: " + e.getMessage(), e);
    return Collections.emptyList();
  }
}
origin: OpenNMS/opennms

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

  transitions = jira.getIssueClient().getTransitions(issue).get();
} catch (InterruptedException | ExecutionException e) {
  throw new PluginException("Failed to get transitions for issue with id:" + issue.getId(), e);
origin: org.jboss.set/jboss-aphrodite-jira

if (!JiraFields.hasSameIssueStatus(issue, jiraIssue)) {
  String transition = getJiraTransition(issue, jiraIssue);
  for(Transition t : issueClient.getTransitions(jiraIssue).get()) {
    if(t.getName().equals(transition)) {
      issueClient.transition(jiraIssue, new TransitionInput(t.getId())).claim();
com.atlassian.jira.rest.client.apiIssueRestClientgetTransitions

Javadoc

Retrieves complete information (if the caller has permission) about transitions available for the selected issue in its current state.

Popular methods of IssueRestClient

  • getIssue
    Retrieves issue with selected issue key, with specified additional expandos.
  • createIssue
    Creates new issue.
  • 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

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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