congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MetadataRestClient.getPriorities
Code IndexAdd Tabnine to your IDE (free)

How to use
getPriorities
method
in
com.atlassian.jira.rest.client.api.MetadataRestClient

Best Java code snippets using com.atlassian.jira.rest.client.api.MetadataRestClient.getPriorities (Showing top 3 results out of 315)

origin: jenkinsci/jira-plugin

public List<Priority> getPriorities() {
  try {
    return Lists.newArrayList(jiraRestClient.getMetadataClient().getPriorities().get(timeout, TimeUnit.SECONDS));
  } catch (Exception e) {
    LOGGER.log(WARNING, "jira rest client get priorities error. cause: " + e.getMessage(), e);
    return Collections.emptyList();
  }
}
origin: OpenNMS/opennms

  @Override
  protected void doExecute(JiraRestClient jiraRestClient) throws Exception {
    Iterable<Priority> priorities = jiraRestClient.getMetadataClient().getPriorities().get();
    if (!priorities.iterator().hasNext()) {
      System.out.println("No priorities found");
      return;
    }

    System.out.println(String.format(DEFAULT_ROW_FORMAT, "Id", "Name", "Description"));
    for (Priority eachPriority : priorities) {
      System.out.println(
          String.format(
              DEFAULT_ROW_FORMAT,
              eachPriority.getId(),
              eachPriority.getName(),
              removeNewLines(eachPriority.getDescription())));
    }
  }
}
origin: org.opennms.features/jira-troubleticketer

  @Override
  protected void doExecute(JiraRestClient jiraRestClient) throws Exception {
    Iterable<Priority> priorities = jiraRestClient.getMetadataClient().getPriorities().get();
    if (!priorities.iterator().hasNext()) {
      System.out.println("No priorities found");
      return;
    }

    System.out.println(String.format(DEFAULT_ROW_FORMAT, "Id", "Name", "Description"));
    for (Priority eachPriority : priorities) {
      System.out.println(
          String.format(
              DEFAULT_ROW_FORMAT,
              eachPriority.getId(),
              eachPriority.getName(),
              removeNewLines(eachPriority.getDescription())));
    }
  }
}
com.atlassian.jira.rest.client.apiMetadataRestClientgetPriorities

Javadoc

Retrieves from the server complete list of available priorities

Popular methods of MetadataRestClient

  • getServerInfo
    Retrieves information about this JIRA instance
  • getIssueTypes
    Retrieves from the server complete list of available issue type
  • getStatuses
    Retrieves lists of available statuses with complete information about them

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • putExtra (Intent)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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