Tabnine Logo
com.atlassian.jira.rest.client.api
Code IndexAdd Tabnine to your IDE (free)

How to use com.atlassian.jira.rest.client.api

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

origin: com.atlassian.jira/jira-rest-java-client-api

  @Override
  public String apply(IdentifiableEntity<String> entity) {
    return entity.getId();
  }
};
origin: com.atlassian.jira/jira-rest-java-android-client-api

  @Override
  public String apply(NamedEntity entity) {
    return entity.getName();
  }
};
origin: com.atlassian.jira/jira-rest-java-client-api

public RestClientException(final RestClientException exception) {
  super(exception.getMessage(), exception);
  this.statusCode = exception.getStatusCode();
  this.errorCollections = exception.errorCollections;
}
origin: OpenNMS/opennms

/**
 * Does the same as {@link #getIssueMetaData(JiraRestClient, String, String, String)} but filters by issueTypeId instead of issueTypeName.
 *
 * @see #getIssueMetaData(JiraRestClient, String, String, String)
 */
public static List<CimProject> getIssueMetaData(JiraRestClient client, String expandos, Long issueTypeId, String projectKey) throws ExecutionException, InterruptedException {
  return Lists.newArrayList(client.getIssueClient().getCreateIssueMetadata(
      new GetCreateIssueMetadataOptions(
          expandos == null ? null : Lists.newArrayList(expandos),
          null, // no issue type names
          issueTypeId == null ? null : Lists.newArrayList(issueTypeId),
          projectKey == null ? null : Lists.newArrayList(projectKey),
          null)) // no project ids
      .get());
}
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: OpenNMS/opennms

private static void validateProjectKey(JiraRestClient client, String projectKey) {
  System.out.println("Validating project with key '" + projectKey + "'...");
  try {
    if (client.getProjectClient().getProject(projectKey).get() == null) {
      throw new RuntimeException("Project with key = '" + projectKey + "' does not exist");
    }
  } catch (InterruptedException | ExecutionException e) {
    throw new RuntimeException("Could not retrieve project data for project with key '" + projectKey + "' from jira", e);
  }
  System.out.println("OK");
}
origin: com.atlassian.jira/jira-rest-java-client-api

  public GetCreateIssueMetadataOptions build() {
    return new GetCreateIssueMetadataOptions(expandos, issueTypeNames, issueTypeIds, projectKeys, projectIds);
  }
}
origin: org.jboss.set/jboss-aphrodite-jira

@Override
public void destroy() {
  try {
    restClient.close();
  } catch (IOException e) {
    LOG.warn("destroyin jira issue tracker", e);
  }
}
origin: org.openengsb.wrapped/jira-rest-java-client-core

  @Override
  public void apply(final Request request) {
    authenticationHandler.configure(request);
  }
});
origin: jenkinsci/jira-plugin

  /**
   * Get User's permissions
   *
   */
  public Permissions getMyPermissions() throws RestClientException {
    return jiraRestClient.getMyPermissionsRestClient().getMyPermissions(null).claim();
  }
}
origin: com.atlassian.jira/jira-rest-java-client-core

@Override
public T claim() {
  try {
    return delegate.claim();
  } catch (RestClientException e) {
    throw new RestClientException(e);
  }
}
origin: org.opennms.features/jira-troubleticketer

/**
 * Does the same as {@link #getIssueMetaData(JiraRestClient, String, String, String)} but filters by issueTypeId instead of issueTypeName.
 *
 * @see #getIssueMetaData(JiraRestClient, String, String, String)
 */
public static List<CimProject> getIssueMetaData(JiraRestClient client, String expandos, Long issueTypeId, String projectKey) throws ExecutionException, InterruptedException {
  return Lists.newArrayList(client.getIssueClient().getCreateIssueMetadata(
      new GetCreateIssueMetadataOptions(
          expandos == null ? null : Lists.newArrayList(expandos),
          null, // no issue type names
          issueTypeId == null ? null : Lists.newArrayList(issueTypeId),
          projectKey == null ? null : Lists.newArrayList(projectKey),
          null)) // no project ids
      .get());
}
origin: com.atlassian.jira/jira-rest-java-android-client-api

public RestClientException(final RestClientException exception) {
  super(exception.getMessage(), exception);
  this.statusCode = exception.getStatusCode();
  this.errorCollections = exception.errorCollections;
}
origin: com.atlassian.jira/jira-rest-java-android-client-api

  @Override
  public String apply(IdentifiableEntity<String> entity) {
    return entity.getId();
  }
};
origin: com.atlassian.jira/jira-rest-java-android-client-api

  public GetCreateIssueMetadataOptions build() {
    return new GetCreateIssueMetadataOptions(expandos, issueTypeNames, issueTypeIds, projectKeys, projectIds);
  }
}
origin: com.atlassian.jira/jira-rest-java-client-api

  @Override
  public String apply(NamedEntity entity) {
    return entity.getName();
  }
};
origin: OpenNMS/opennms

@Override
public Object execute() throws Exception {
  JiraRestClient jiraClient = createJiraClient();
  try {
    doExecute(jiraClient);
  } finally {
    jiraClient.close();
  }
  return null;
}
origin: com.atlassian.jira/jira-rest-java-client-api

  @Override
  public String apply(IdentifiableEntity<T> from) {
    return from.getId() == null ? null : from.getId().toString();
  }
});
origin: com.atlassian.jira/jira-rest-java-android-client-api

  @Override
  public String apply(IdentifiableEntity<T> from) {
    return from.getId() == null ? null : from.getId().toString();
  }
});
origin: com.atlassian.jira/jira-rest-java-client-api

  @Override
  public boolean apply(T input) {
    return id.equals(input.getId());
  }
}
com.atlassian.jira.rest.client.api

Most used classes

  • BasicProject
    Basic information about a JIRA project
  • Issue
    Single JIRA issue
  • IssueType
    Complete information about a single issue type defined in JIRA
  • Status
    Basic information about a JIRA issue status
  • Version
    Complete information about a version defined for a JIRA project
  • BasicIssue,
  • BasicUser,
  • Comment,
  • ComplexIssueInputFieldValue,
  • BasicPriority,
  • CimFieldInfo,
  • IssueField,
  • TimeTracking,
  • FieldInput,
  • IssueInputBuilder,
  • IssueRestClient,
  • JiraRestClient,
  • MetadataRestClient,
  • RestClientException
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