Tabnine Logo
MetadataRestClient.getIssueTypes
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jenkinsci/jira-plugin

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

  /**
   * Convenient method to get all issue types of a project.
   *
   * @param client The {@link JiraRestClient}
   * @param projectKey The project key. Is null or empty, all issue types are returned, otherwise issue types for the given projectKey are returned.
   * @return All issue types or issue types for the given projectKey.
   *
   * @throws ExecutionException
   * @throws InterruptedException
   */
  public static Iterable<? extends IssueType> getIssueTypes(JiraRestClient client, String projectKey) throws ExecutionException, InterruptedException {
    if (Strings.isNullOrEmpty(projectKey)) {
      return client.getMetadataClient().getIssueTypes().get();
    }
    final Iterable<CimProject> cimProjects = getIssueMetaData(client, null, (String) null, projectKey);
    if (cimProjects.iterator().hasNext()) {
      return cimProjects.iterator().next().getIssueTypes();
    }
    return Lists.newArrayList();
  }
}
origin: org.opennms.features/jira-troubleticketer

  /**
   * Convenient method to get all issue types of a project.
   *
   * @param client The {@link JiraRestClient}
   * @param projectKey The project key. Is null or empty, all issue types are returned, otherwise issue types for the given projectKey are returned.
   * @return All issue types or issue types for the given projectKey.
   *
   * @throws ExecutionException
   * @throws InterruptedException
   */
  public static Iterable<? extends IssueType> getIssueTypes(JiraRestClient client, String projectKey) throws ExecutionException, InterruptedException {
    if (Strings.isNullOrEmpty(projectKey)) {
      return client.getMetadataClient().getIssueTypes().get();
    }
    final Iterable<CimProject> cimProjects = getIssueMetaData(client, null, (String) null, projectKey);
    if (cimProjects.iterator().hasNext()) {
      return cimProjects.iterator().next().getIssueTypes();
    }
    return Lists.newArrayList();
  }
}
com.atlassian.jira.rest.client.apiMetadataRestClientgetIssueTypes

Javadoc

Retrieves from the server complete list of available issue type

Popular methods of MetadataRestClient

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

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • From CI to AI: The AI layer in your organization
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