public GetCreateIssueMetadataOptions build() { return new GetCreateIssueMetadataOptions(expandos, issueTypeNames, issueTypeIds, projectKeys, projectIds); } }
public GetCreateIssueMetadataOptions build() { return new GetCreateIssueMetadataOptions(expandos, issueTypeNames, issueTypeIds, projectKeys, projectIds); } }
/** * 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()); }
/** * 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()); }
/** * Convenient method to get the meta data to create issues. * It allows queriing by issueTypeName and projectKey. * * @param client the {@link JiraRestClient} to make the ReST call. * @param expandos The expandos, to expand the json object if required * @param issueTypeName Filter by issue type name (e.g. Bug). May be null. * @param projectKey Filter by project key (e.g. DUM). May be null. * @return The issue meta data for the queried projects. * @throws ExecutionException * @throws InterruptedException */ public static List<CimProject> getIssueMetaData(JiraRestClient client, String expandos, String issueTypeName, String projectKey) throws ExecutionException, InterruptedException { return Lists.newArrayList(client.getIssueClient().getCreateIssueMetadata( new GetCreateIssueMetadataOptions( expandos == null ? null : Lists.newArrayList(expandos), issueTypeName == null ? null : Lists.newArrayList(issueTypeName), null, // no issue type ids projectKey == null ? null : Lists.newArrayList(projectKey), null)) // no project ids .get()); }
/** * Convenient method to get the meta data to create issues. * It allows queriing by issueTypeName and projectKey. * * @param client the {@link JiraRestClient} to make the ReST call. * @param expandos The expandos, to expand the json object if required * @param issueTypeName Filter by issue type name (e.g. Bug). May be null. * @param projectKey Filter by project key (e.g. DUM). May be null. * @return The issue meta data for the queried projects. * @throws ExecutionException * @throws InterruptedException */ public static List<CimProject> getIssueMetaData(JiraRestClient client, String expandos, String issueTypeName, String projectKey) throws ExecutionException, InterruptedException { return Lists.newArrayList(client.getIssueClient().getCreateIssueMetadata( new GetCreateIssueMetadataOptions( expandos == null ? null : Lists.newArrayList(expandos), issueTypeName == null ? null : Lists.newArrayList(issueTypeName), null, // no issue type ids projectKey == null ? null : Lists.newArrayList(projectKey), null)) // no project ids .get()); }