public class JiraClientUtils extends Object
Constructor and Description |
---|
JiraClientUtils() |
Modifier and Type | Method and Description |
---|---|
static Collection<com.atlassian.jira.rest.client.api.domain.CimFieldInfo> |
getFields(List<com.atlassian.jira.rest.client.api.domain.CimProject> cimProjects)
Convenient method to extract all fields from the projects list.
|
static List<com.atlassian.jira.rest.client.api.domain.CimProject> |
getIssueMetaData(com.atlassian.jira.rest.client.api.JiraRestClient client,
String expandos,
Long issueTypeId,
String projectKey)
Does the same as
getIssueMetaData(JiraRestClient, String, String, String) but filters by issueTypeId instead of issueTypeName. |
static List<com.atlassian.jira.rest.client.api.domain.CimProject> |
getIssueMetaData(com.atlassian.jira.rest.client.api.JiraRestClient client,
String expandos,
String issueTypeName,
String projectKey)
Convenient method to get the meta data to create issues.
|
static Iterable<? extends com.atlassian.jira.rest.client.api.domain.IssueType> |
getIssueTypes(com.atlassian.jira.rest.client.api.JiraRestClient client,
String projectKey)
Convenient method to get all issue types of a project.
|
public static List<com.atlassian.jira.rest.client.api.domain.CimProject> getIssueMetaData(com.atlassian.jira.rest.client.api.JiraRestClient client, String expandos, String issueTypeName, String projectKey) throws ExecutionException, InterruptedException
client
- the JiraRestClient
to make the ReST call.expandos
- The expandos, to expand the json object if requiredissueTypeName
- Filter by issue type name (e.g. Bug). May be null.projectKey
- Filter by project key (e.g. DUM). May be null.ExecutionException
InterruptedException
public static List<com.atlassian.jira.rest.client.api.domain.CimProject> getIssueMetaData(com.atlassian.jira.rest.client.api.JiraRestClient client, String expandos, Long issueTypeId, String projectKey) throws ExecutionException, InterruptedException
getIssueMetaData(JiraRestClient, String, String, String)
but filters by issueTypeId instead of issueTypeName.public static Collection<com.atlassian.jira.rest.client.api.domain.CimFieldInfo> getFields(List<com.atlassian.jira.rest.client.api.domain.CimProject> cimProjects)
cimProjects
- The projects list. May be null or empty. May not contain more than 1 element.public static Iterable<? extends com.atlassian.jira.rest.client.api.domain.IssueType> getIssueTypes(com.atlassian.jira.rest.client.api.JiraRestClient client, String projectKey) throws ExecutionException, InterruptedException
client
- The JiraRestClient
projectKey
- The project key. Is null or empty, all issue types are returned, otherwise issue types for the given projectKey are returned.ExecutionException
InterruptedException
Copyright © 2021. All rights reserved.