Tabnine Logo
Project.getComponents
Code IndexAdd Tabnine to your IDE (free)

How to use
getComponents
method
in
com.atlassian.jira.rest.client.api.domain.Project

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

origin: org.smartdeveloperhub.harvesters.it.backend/it-backend-core

  private Set<String> getComponentsByIds(com.atlassian.jira.rest.client.api.domain.Project jiraProject) {

    Set<String> componentsIds = new HashSet<>();

    for (com.atlassian.jira.rest.client.api.domain.BasicComponent component : jiraProject.getComponents()) {

      componentsIds.add(String.valueOf(component.getId()));
    }
    return componentsIds;
  }
}
origin: OpenNMS/opennms

  @Override
  protected void doExecute(JiraRestClient jiraRestClient) throws Exception {
    final String theProjectKey = Strings.isNullOrEmpty(projectKey) ? getConfig().getProjectKey() : projectKey;
    final Iterable<BasicComponent> components = jiraRestClient.getProjectClient().getProject(theProjectKey).get().getComponents();
    if (!components.iterator().hasNext()) {
      System.out.println("No components found for project '" + theProjectKey + "'");
      return;
    }
    System.out.println(String.format(DEFAULT_ROW_FORMAT, "Id", "Name", "Description"));
    for (BasicComponent eachComponent : components) {
      System.out.println(
          String.format(DEFAULT_ROW_FORMAT,
              eachComponent.getId(),
              eachComponent.getName(),
              eachComponent.getDescription() == null ? "" : removeNewLines(eachComponent.getDescription())));
    }
  }
}
origin: org.opennms.features/jira-troubleticketer

  @Override
  protected void doExecute(JiraRestClient jiraRestClient) throws Exception {
    final String theProjectKey = Strings.isNullOrEmpty(projectKey) ? getConfig().getProjectKey() : projectKey;
    final Iterable<BasicComponent> components = jiraRestClient.getProjectClient().getProject(theProjectKey).get().getComponents();
    if (!components.iterator().hasNext()) {
      System.out.println("No components found for project '" + theProjectKey + "'");
      return;
    }
    System.out.println(String.format(DEFAULT_ROW_FORMAT, "Id", "Name", "Description"));
    for (BasicComponent eachComponent : components) {
      System.out.println(
          String.format(DEFAULT_ROW_FORMAT,
              eachComponent.getId(),
              eachComponent.getName(),
              eachComponent.getDescription() == null ? "" : removeNewLines(eachComponent.getDescription())));
    }
  }
}
origin: org.smartdeveloperhub.harvesters.it.backend/it-backend-core

Set<Component> components = getAllComponents(jiraProject.getKey(), jiraProject.getComponents());
com.atlassian.jira.rest.client.api.domainProjectgetComponents

Popular methods of Project

  • getVersions
  • <init>
  • getDescription
  • getKey
  • getName

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Best IntelliJ 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