All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.tnb.jira.validation.generated.api.IssueTypeSchemesApi Maven / Gradle / Ivy

The newest version!
/*
 * The Jira Cloud platform REST API
 * Jira Cloud platform REST API documentation
 *
 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package software.tnb.jira.validation.generated.api;

import software.tnb.jira.validation.generated.ApiCallback;
import software.tnb.jira.validation.generated.ApiClient;
import software.tnb.jira.validation.generated.ApiException;
import software.tnb.jira.validation.generated.ApiResponse;
import software.tnb.jira.validation.generated.Configuration;
import software.tnb.jira.validation.generated.Pair;
import software.tnb.jira.validation.generated.ProgressRequestBody;
import software.tnb.jira.validation.generated.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import software.tnb.jira.validation.generated.model.IssueTypeIds;
import software.tnb.jira.validation.generated.model.IssueTypeSchemeDetails;
import software.tnb.jira.validation.generated.model.IssueTypeSchemeID;
import software.tnb.jira.validation.generated.model.IssueTypeSchemeProjectAssociation;
import software.tnb.jira.validation.generated.model.IssueTypeSchemeUpdateDetails;
import software.tnb.jira.validation.generated.model.OrderOfIssueTypes;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeScheme;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeSchemeMapping;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeSchemeProjects;
import java.util.Set;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class IssueTypeSchemesApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public IssueTypeSchemesApi() {
        this(Configuration.getDefaultApiClient());
    }

    public IssueTypeSchemesApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
        return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
        this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
        return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
        this.localCustomBaseUrl = customBaseUrl;
    }

    /**
     * Build call for addIssueTypesToIssueTypeScheme
     * @param issueTypeSchemeId The ID of the issue type scheme. (required)
     * @param issueTypeIds  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type or the issue type scheme is not found. -
*/ public okhttp3.Call addIssueTypesToIssueTypeSchemeCall(Long issueTypeSchemeId, IssueTypeIds issueTypeIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = issueTypeIds; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype" .replace("{" + "issueTypeSchemeId" + "}", localVarApiClient.escapeString(issueTypeSchemeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call addIssueTypesToIssueTypeSchemeValidateBeforeCall(Long issueTypeSchemeId, IssueTypeIds issueTypeIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeId' is set if (issueTypeSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeId' when calling addIssueTypesToIssueTypeScheme(Async)"); } // verify the required parameter 'issueTypeIds' is set if (issueTypeIds == null) { throw new ApiException("Missing the required parameter 'issueTypeIds' when calling addIssueTypesToIssueTypeScheme(Async)"); } return addIssueTypesToIssueTypeSchemeCall(issueTypeSchemeId, issueTypeIds, _callback); } /** * Add issue types to issue type scheme * Adds issue types to an issue type scheme. The added issue types are appended to the issue types list. If any of the issue types exist in the issue type scheme, the operation fails and no issue types are added. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeIds (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type or the issue type scheme is not found. -
*/ public Object addIssueTypesToIssueTypeScheme(Long issueTypeSchemeId, IssueTypeIds issueTypeIds) throws ApiException { ApiResponse localVarResp = addIssueTypesToIssueTypeSchemeWithHttpInfo(issueTypeSchemeId, issueTypeIds); return localVarResp.getData(); } /** * Add issue types to issue type scheme * Adds issue types to an issue type scheme. The added issue types are appended to the issue types list. If any of the issue types exist in the issue type scheme, the operation fails and no issue types are added. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeIds (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type or the issue type scheme is not found. -
*/ public ApiResponse addIssueTypesToIssueTypeSchemeWithHttpInfo(Long issueTypeSchemeId, IssueTypeIds issueTypeIds) throws ApiException { okhttp3.Call localVarCall = addIssueTypesToIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeIds, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Add issue types to issue type scheme (asynchronously) * Adds issue types to an issue type scheme. The added issue types are appended to the issue types list. If any of the issue types exist in the issue type scheme, the operation fails and no issue types are added. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeIds (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type or the issue type scheme is not found. -
*/ public okhttp3.Call addIssueTypesToIssueTypeSchemeAsync(Long issueTypeSchemeId, IssueTypeIds issueTypeIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = addIssueTypesToIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for assignIssueTypeSchemeToProject * @param issueTypeSchemeProjectAssociation (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme or the project is not found. -
*/ public okhttp3.Call assignIssueTypeSchemeToProjectCall(IssueTypeSchemeProjectAssociation issueTypeSchemeProjectAssociation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = issueTypeSchemeProjectAssociation; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/project"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call assignIssueTypeSchemeToProjectValidateBeforeCall(IssueTypeSchemeProjectAssociation issueTypeSchemeProjectAssociation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeProjectAssociation' is set if (issueTypeSchemeProjectAssociation == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeProjectAssociation' when calling assignIssueTypeSchemeToProject(Async)"); } return assignIssueTypeSchemeToProjectCall(issueTypeSchemeProjectAssociation, _callback); } /** * Assign issue type scheme to project * Assigns an issue type scheme to a project. If any issues in the project are assigned issue types not present in the new scheme, the operation will fail. To complete the assignment those issues must be updated to use issue types in the new scheme. Issue type schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeProjectAssociation (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme or the project is not found. -
*/ public Object assignIssueTypeSchemeToProject(IssueTypeSchemeProjectAssociation issueTypeSchemeProjectAssociation) throws ApiException { ApiResponse localVarResp = assignIssueTypeSchemeToProjectWithHttpInfo(issueTypeSchemeProjectAssociation); return localVarResp.getData(); } /** * Assign issue type scheme to project * Assigns an issue type scheme to a project. If any issues in the project are assigned issue types not present in the new scheme, the operation will fail. To complete the assignment those issues must be updated to use issue types in the new scheme. Issue type schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeProjectAssociation (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme or the project is not found. -
*/ public ApiResponse assignIssueTypeSchemeToProjectWithHttpInfo(IssueTypeSchemeProjectAssociation issueTypeSchemeProjectAssociation) throws ApiException { okhttp3.Call localVarCall = assignIssueTypeSchemeToProjectValidateBeforeCall(issueTypeSchemeProjectAssociation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Assign issue type scheme to project (asynchronously) * Assigns an issue type scheme to a project. If any issues in the project are assigned issue types not present in the new scheme, the operation will fail. To complete the assignment those issues must be updated to use issue types in the new scheme. Issue type schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeProjectAssociation (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme or the project is not found. -
*/ public okhttp3.Call assignIssueTypeSchemeToProjectAsync(IssueTypeSchemeProjectAssociation issueTypeSchemeProjectAssociation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = assignIssueTypeSchemeToProjectValidateBeforeCall(issueTypeSchemeProjectAssociation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createIssueTypeScheme * @param issueTypeSchemeDetails (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
201 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
409 Returned if the scheme name is used by another scheme. -
*/ public okhttp3.Call createIssueTypeSchemeCall(IssueTypeSchemeDetails issueTypeSchemeDetails, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = issueTypeSchemeDetails; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createIssueTypeSchemeValidateBeforeCall(IssueTypeSchemeDetails issueTypeSchemeDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeDetails' is set if (issueTypeSchemeDetails == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeDetails' when calling createIssueTypeScheme(Async)"); } return createIssueTypeSchemeCall(issueTypeSchemeDetails, _callback); } /** * Create issue type scheme * Creates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeDetails (required) * @return IssueTypeSchemeID * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
409 Returned if the scheme name is used by another scheme. -
*/ public IssueTypeSchemeID createIssueTypeScheme(IssueTypeSchemeDetails issueTypeSchemeDetails) throws ApiException { ApiResponse localVarResp = createIssueTypeSchemeWithHttpInfo(issueTypeSchemeDetails); return localVarResp.getData(); } /** * Create issue type scheme * Creates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeDetails (required) * @return ApiResponse<IssueTypeSchemeID> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
201 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
409 Returned if the scheme name is used by another scheme. -
*/ public ApiResponse createIssueTypeSchemeWithHttpInfo(IssueTypeSchemeDetails issueTypeSchemeDetails) throws ApiException { okhttp3.Call localVarCall = createIssueTypeSchemeValidateBeforeCall(issueTypeSchemeDetails, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create issue type scheme (asynchronously) * Creates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeDetails (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
201 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
409 Returned if the scheme name is used by another scheme. -
*/ public okhttp3.Call createIssueTypeSchemeAsync(IssueTypeSchemeDetails issueTypeSchemeDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createIssueTypeSchemeValidateBeforeCall(issueTypeSchemeDetails, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteIssueTypeScheme * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the issue type scheme is deleted. -
400 Returned if the request is to delete the default issue type scheme. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call deleteIssueTypeSchemeCall(Long issueTypeSchemeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/{issueTypeSchemeId}" .replace("{" + "issueTypeSchemeId" + "}", localVarApiClient.escapeString(issueTypeSchemeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call deleteIssueTypeSchemeValidateBeforeCall(Long issueTypeSchemeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeId' is set if (issueTypeSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeId' when calling deleteIssueTypeScheme(Async)"); } return deleteIssueTypeSchemeCall(issueTypeSchemeId, _callback); } /** * Delete issue type scheme * Deletes an issue type scheme. Only issue type schemes used in classic projects can be deleted. Any projects assigned to the scheme are reassigned to the default issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the issue type scheme is deleted. -
400 Returned if the request is to delete the default issue type scheme. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public Object deleteIssueTypeScheme(Long issueTypeSchemeId) throws ApiException { ApiResponse localVarResp = deleteIssueTypeSchemeWithHttpInfo(issueTypeSchemeId); return localVarResp.getData(); } /** * Delete issue type scheme * Deletes an issue type scheme. Only issue type schemes used in classic projects can be deleted. Any projects assigned to the scheme are reassigned to the default issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the issue type scheme is deleted. -
400 Returned if the request is to delete the default issue type scheme. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public ApiResponse deleteIssueTypeSchemeWithHttpInfo(Long issueTypeSchemeId) throws ApiException { okhttp3.Call localVarCall = deleteIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete issue type scheme (asynchronously) * Deletes an issue type scheme. Only issue type schemes used in classic projects can be deleted. Any projects assigned to the scheme are reassigned to the default issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the issue type scheme is deleted. -
400 Returned if the request is to delete the default issue type scheme. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call deleteIssueTypeSchemeAsync(Long issueTypeSchemeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getAllIssueTypeSchemes * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param id The list of issue type schemes IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type scheme name. * `id` Sorts by issue type scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `projects` For each issue type schemes, returns information about the projects the issue type scheme is assigned to. * `issueTypes` For each issue type schemes, returns information about the issueTypes the issue type scheme have. (optional, default to ) * @param queryString String used to perform a case-insensitive partial match with issue type scheme name. (optional, default to ) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getAllIssueTypeSchemesCall(Long startAt, Integer maxResults, Set id, String orderBy, String expand, String queryString, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (startAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("startAt", startAt)); } if (maxResults != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxResults", maxResults)); } if (id != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "id", id)); } if (orderBy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderBy", orderBy)); } if (expand != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("expand", expand)); } if (queryString != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("queryString", queryString)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getAllIssueTypeSchemesValidateBeforeCall(Long startAt, Integer maxResults, Set id, String orderBy, String expand, String queryString, final ApiCallback _callback) throws ApiException { return getAllIssueTypeSchemesCall(startAt, maxResults, id, orderBy, expand, queryString, _callback); } /** * Get all issue type schemes * Returns a [paginated](#pagination) list of issue type schemes. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param id The list of issue type schemes IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type scheme name. * `id` Sorts by issue type scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `projects` For each issue type schemes, returns information about the projects the issue type scheme is assigned to. * `issueTypes` For each issue type schemes, returns information about the issueTypes the issue type scheme have. (optional, default to ) * @param queryString String used to perform a case-insensitive partial match with issue type scheme name. (optional, default to ) * @return PageBeanIssueTypeScheme * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public PageBeanIssueTypeScheme getAllIssueTypeSchemes(Long startAt, Integer maxResults, Set id, String orderBy, String expand, String queryString) throws ApiException { ApiResponse localVarResp = getAllIssueTypeSchemesWithHttpInfo(startAt, maxResults, id, orderBy, expand, queryString); return localVarResp.getData(); } /** * Get all issue type schemes * Returns a [paginated](#pagination) list of issue type schemes. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param id The list of issue type schemes IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type scheme name. * `id` Sorts by issue type scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `projects` For each issue type schemes, returns information about the projects the issue type scheme is assigned to. * `issueTypes` For each issue type schemes, returns information about the issueTypes the issue type scheme have. (optional, default to ) * @param queryString String used to perform a case-insensitive partial match with issue type scheme name. (optional, default to ) * @return ApiResponse<PageBeanIssueTypeScheme> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public ApiResponse getAllIssueTypeSchemesWithHttpInfo(Long startAt, Integer maxResults, Set id, String orderBy, String expand, String queryString) throws ApiException { okhttp3.Call localVarCall = getAllIssueTypeSchemesValidateBeforeCall(startAt, maxResults, id, orderBy, expand, queryString, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get all issue type schemes (asynchronously) * Returns a [paginated](#pagination) list of issue type schemes. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param id The list of issue type schemes IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type scheme name. * `id` Sorts by issue type scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `projects` For each issue type schemes, returns information about the projects the issue type scheme is assigned to. * `issueTypes` For each issue type schemes, returns information about the issueTypes the issue type scheme have. (optional, default to ) * @param queryString String used to perform a case-insensitive partial match with issue type scheme name. (optional, default to ) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getAllIssueTypeSchemesAsync(Long startAt, Integer maxResults, Set id, String orderBy, String expand, String queryString, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getAllIssueTypeSchemesValidateBeforeCall(startAt, maxResults, id, orderBy, expand, queryString, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getIssueTypeSchemeForProjects * @param projectId The list of project IDs. To include multiple project IDs, provide an ampersand-separated list. For example, `projectId=10000&projectId=10001`. (required) * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getIssueTypeSchemeForProjectsCall(Set projectId, Long startAt, Integer maxResults, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/project"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (startAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("startAt", startAt)); } if (maxResults != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxResults", maxResults)); } if (projectId != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "projectId", projectId)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getIssueTypeSchemeForProjectsValidateBeforeCall(Set projectId, Long startAt, Integer maxResults, final ApiCallback _callback) throws ApiException { // verify the required parameter 'projectId' is set if (projectId == null) { throw new ApiException("Missing the required parameter 'projectId' when calling getIssueTypeSchemeForProjects(Async)"); } return getIssueTypeSchemeForProjectsCall(projectId, startAt, maxResults, _callback); } /** * Get issue type schemes for projects * Returns a [paginated](#pagination) list of issue type schemes and, for each issue type scheme, a list of the projects that use it. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param projectId The list of project IDs. To include multiple project IDs, provide an ampersand-separated list. For example, `projectId=10000&projectId=10001`. (required) * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @return PageBeanIssueTypeSchemeProjects * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public PageBeanIssueTypeSchemeProjects getIssueTypeSchemeForProjects(Set projectId, Long startAt, Integer maxResults) throws ApiException { ApiResponse localVarResp = getIssueTypeSchemeForProjectsWithHttpInfo(projectId, startAt, maxResults); return localVarResp.getData(); } /** * Get issue type schemes for projects * Returns a [paginated](#pagination) list of issue type schemes and, for each issue type scheme, a list of the projects that use it. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param projectId The list of project IDs. To include multiple project IDs, provide an ampersand-separated list. For example, `projectId=10000&projectId=10001`. (required) * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @return ApiResponse<PageBeanIssueTypeSchemeProjects> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public ApiResponse getIssueTypeSchemeForProjectsWithHttpInfo(Set projectId, Long startAt, Integer maxResults) throws ApiException { okhttp3.Call localVarCall = getIssueTypeSchemeForProjectsValidateBeforeCall(projectId, startAt, maxResults, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type schemes for projects (asynchronously) * Returns a [paginated](#pagination) list of issue type schemes and, for each issue type scheme, a list of the projects that use it. Only issue type schemes used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param projectId The list of project IDs. To include multiple project IDs, provide an ampersand-separated list. For example, `projectId=10000&projectId=10001`. (required) * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getIssueTypeSchemeForProjectsAsync(Set projectId, Long startAt, Integer maxResults, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getIssueTypeSchemeForProjectsValidateBeforeCall(projectId, startAt, maxResults, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getIssueTypeSchemesMapping * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param issueTypeSchemeId The list of issue type scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `issueTypeSchemeId=10000&issueTypeSchemeId=10001`. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getIssueTypeSchemesMappingCall(Long startAt, Integer maxResults, Set issueTypeSchemeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/mapping"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (startAt != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("startAt", startAt)); } if (maxResults != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("maxResults", maxResults)); } if (issueTypeSchemeId != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "issueTypeSchemeId", issueTypeSchemeId)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getIssueTypeSchemesMappingValidateBeforeCall(Long startAt, Integer maxResults, Set issueTypeSchemeId, final ApiCallback _callback) throws ApiException { return getIssueTypeSchemesMappingCall(startAt, maxResults, issueTypeSchemeId, _callback); } /** * Get issue type scheme items * Returns a [paginated](#pagination) list of issue type scheme items. Only issue type scheme items used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param issueTypeSchemeId The list of issue type scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `issueTypeSchemeId=10000&issueTypeSchemeId=10001`. (optional) * @return PageBeanIssueTypeSchemeMapping * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public PageBeanIssueTypeSchemeMapping getIssueTypeSchemesMapping(Long startAt, Integer maxResults, Set issueTypeSchemeId) throws ApiException { ApiResponse localVarResp = getIssueTypeSchemesMappingWithHttpInfo(startAt, maxResults, issueTypeSchemeId); return localVarResp.getData(); } /** * Get issue type scheme items * Returns a [paginated](#pagination) list of issue type scheme items. Only issue type scheme items used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param issueTypeSchemeId The list of issue type scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `issueTypeSchemeId=10000&issueTypeSchemeId=10001`. (optional) * @return ApiResponse<PageBeanIssueTypeSchemeMapping> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public ApiResponse getIssueTypeSchemesMappingWithHttpInfo(Long startAt, Integer maxResults, Set issueTypeSchemeId) throws ApiException { okhttp3.Call localVarCall = getIssueTypeSchemesMappingValidateBeforeCall(startAt, maxResults, issueTypeSchemeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type scheme items (asynchronously) * Returns a [paginated](#pagination) list of issue type scheme items. Only issue type scheme items used in classic projects are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param startAt The index of the first item to return in a page of results (page offset). (optional, default to 0) * @param maxResults The maximum number of items to return per page. (optional, default to 50) * @param issueTypeSchemeId The list of issue type scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `issueTypeSchemeId=10000&issueTypeSchemeId=10001`. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
200 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
*/ public okhttp3.Call getIssueTypeSchemesMappingAsync(Long startAt, Integer maxResults, Set issueTypeSchemeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getIssueTypeSchemesMappingValidateBeforeCall(startAt, maxResults, issueTypeSchemeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for removeIssueTypeFromIssueTypeScheme * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeId The ID of the issue type. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is missing or the issue type is not found in the issue type scheme. -
*/ public okhttp3.Call removeIssueTypeFromIssueTypeSchemeCall(Long issueTypeSchemeId, Long issueTypeId, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/{issueTypeId}" .replace("{" + "issueTypeSchemeId" + "}", localVarApiClient.escapeString(issueTypeSchemeId.toString())) .replace("{" + "issueTypeId" + "}", localVarApiClient.escapeString(issueTypeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call removeIssueTypeFromIssueTypeSchemeValidateBeforeCall(Long issueTypeSchemeId, Long issueTypeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeId' is set if (issueTypeSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeId' when calling removeIssueTypeFromIssueTypeScheme(Async)"); } // verify the required parameter 'issueTypeId' is set if (issueTypeId == null) { throw new ApiException("Missing the required parameter 'issueTypeId' when calling removeIssueTypeFromIssueTypeScheme(Async)"); } return removeIssueTypeFromIssueTypeSchemeCall(issueTypeSchemeId, issueTypeId, _callback); } /** * Remove issue type from issue type scheme * Removes an issue type from an issue type scheme. This operation cannot remove: * any issue type used by issues. * any issue types from the default issue type scheme. * the last standard issue type from an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeId The ID of the issue type. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is missing or the issue type is not found in the issue type scheme. -
*/ public Object removeIssueTypeFromIssueTypeScheme(Long issueTypeSchemeId, Long issueTypeId) throws ApiException { ApiResponse localVarResp = removeIssueTypeFromIssueTypeSchemeWithHttpInfo(issueTypeSchemeId, issueTypeId); return localVarResp.getData(); } /** * Remove issue type from issue type scheme * Removes an issue type from an issue type scheme. This operation cannot remove: * any issue type used by issues. * any issue types from the default issue type scheme. * the last standard issue type from an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeId The ID of the issue type. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is missing or the issue type is not found in the issue type scheme. -
*/ public ApiResponse removeIssueTypeFromIssueTypeSchemeWithHttpInfo(Long issueTypeSchemeId, Long issueTypeId) throws ApiException { okhttp3.Call localVarCall = removeIssueTypeFromIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Remove issue type from issue type scheme (asynchronously) * Removes an issue type from an issue type scheme. This operation cannot remove: * any issue type used by issues. * any issue types from the default issue type scheme. * the last standard issue type from an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeId The ID of the issue type. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is missing or the issue type is not found in the issue type scheme. -
*/ public okhttp3.Call removeIssueTypeFromIssueTypeSchemeAsync(Long issueTypeSchemeId, Long issueTypeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = removeIssueTypeFromIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for reorderIssueTypesInIssueTypeScheme * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param orderOfIssueTypes (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call reorderIssueTypesInIssueTypeSchemeCall(Long issueTypeSchemeId, OrderOfIssueTypes orderOfIssueTypes, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = orderOfIssueTypes; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/{issueTypeSchemeId}/issuetype/move" .replace("{" + "issueTypeSchemeId" + "}", localVarApiClient.escapeString(issueTypeSchemeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call reorderIssueTypesInIssueTypeSchemeValidateBeforeCall(Long issueTypeSchemeId, OrderOfIssueTypes orderOfIssueTypes, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeId' is set if (issueTypeSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeId' when calling reorderIssueTypesInIssueTypeScheme(Async)"); } // verify the required parameter 'orderOfIssueTypes' is set if (orderOfIssueTypes == null) { throw new ApiException("Missing the required parameter 'orderOfIssueTypes' when calling reorderIssueTypesInIssueTypeScheme(Async)"); } return reorderIssueTypesInIssueTypeSchemeCall(issueTypeSchemeId, orderOfIssueTypes, _callback); } /** * Change order of issue types * Changes the order of issue types in an issue type scheme. The request body parameters must meet the following requirements: * all of the issue types must belong to the issue type scheme. * either `after` or `position` must be provided. * the issue type in `after` must not be in the issue type list. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param orderOfIssueTypes (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public Object reorderIssueTypesInIssueTypeScheme(Long issueTypeSchemeId, OrderOfIssueTypes orderOfIssueTypes) throws ApiException { ApiResponse localVarResp = reorderIssueTypesInIssueTypeSchemeWithHttpInfo(issueTypeSchemeId, orderOfIssueTypes); return localVarResp.getData(); } /** * Change order of issue types * Changes the order of issue types in an issue type scheme. The request body parameters must meet the following requirements: * all of the issue types must belong to the issue type scheme. * either `after` or `position` must be provided. * the issue type in `after` must not be in the issue type list. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param orderOfIssueTypes (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public ApiResponse reorderIssueTypesInIssueTypeSchemeWithHttpInfo(Long issueTypeSchemeId, OrderOfIssueTypes orderOfIssueTypes) throws ApiException { okhttp3.Call localVarCall = reorderIssueTypesInIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, orderOfIssueTypes, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Change order of issue types (asynchronously) * Changes the order of issue types in an issue type scheme. The request body parameters must meet the following requirements: * all of the issue types must belong to the issue type scheme. * either `after` or `position` must be provided. * the issue type in `after` must not be in the issue type list. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param orderOfIssueTypes (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call reorderIssueTypesInIssueTypeSchemeAsync(Long issueTypeSchemeId, OrderOfIssueTypes orderOfIssueTypes, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = reorderIssueTypesInIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, orderOfIssueTypes, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateIssueTypeScheme * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeSchemeUpdateDetails (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call updateIssueTypeSchemeCall(Long issueTypeSchemeId, IssueTypeSchemeUpdateDetails issueTypeSchemeUpdateDetails, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = issueTypeSchemeUpdateDetails; // create path and map variables String localVarPath = "/rest/api/3/issuetypescheme/{issueTypeSchemeId}" .replace("{" + "issueTypeSchemeId" + "}", localVarApiClient.escapeString(issueTypeSchemeId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "OAuth2", "basicAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updateIssueTypeSchemeValidateBeforeCall(Long issueTypeSchemeId, IssueTypeSchemeUpdateDetails issueTypeSchemeUpdateDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeSchemeId' is set if (issueTypeSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeId' when calling updateIssueTypeScheme(Async)"); } // verify the required parameter 'issueTypeSchemeUpdateDetails' is set if (issueTypeSchemeUpdateDetails == null) { throw new ApiException("Missing the required parameter 'issueTypeSchemeUpdateDetails' when calling updateIssueTypeScheme(Async)"); } return updateIssueTypeSchemeCall(issueTypeSchemeId, issueTypeSchemeUpdateDetails, _callback); } /** * Update issue type scheme * Updates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeSchemeUpdateDetails (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public Object updateIssueTypeScheme(Long issueTypeSchemeId, IssueTypeSchemeUpdateDetails issueTypeSchemeUpdateDetails) throws ApiException { ApiResponse localVarResp = updateIssueTypeSchemeWithHttpInfo(issueTypeSchemeId, issueTypeSchemeUpdateDetails); return localVarResp.getData(); } /** * Update issue type scheme * Updates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeSchemeUpdateDetails (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public ApiResponse updateIssueTypeSchemeWithHttpInfo(Long issueTypeSchemeId, IssueTypeSchemeUpdateDetails issueTypeSchemeUpdateDetails) throws ApiException { okhttp3.Call localVarCall = updateIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeSchemeUpdateDetails, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update issue type scheme (asynchronously) * Updates an issue type scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeSchemeId The ID of the issue type scheme. (required) * @param issueTypeSchemeUpdateDetails (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details
Status Code Description Response Headers
204 Returned if the request is successful. -
400 Returned if the request is not valid. -
401 Returned if the authentication credentials are incorrect or missing. -
403 Returned if the user does not have the required permissions. -
404 Returned if the issue type scheme is not found. -
*/ public okhttp3.Call updateIssueTypeSchemeAsync(Long issueTypeSchemeId, IssueTypeSchemeUpdateDetails issueTypeSchemeUpdateDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateIssueTypeSchemeValidateBeforeCall(issueTypeSchemeId, issueTypeSchemeUpdateDetails, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }