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

software.tnb.jira.validation.generated.api.IssueTypeScreenSchemesApi 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.IssueTypeScreenSchemeDetails;
import software.tnb.jira.validation.generated.model.IssueTypeScreenSchemeId;
import software.tnb.jira.validation.generated.model.IssueTypeScreenSchemeMappingDetails;
import software.tnb.jira.validation.generated.model.IssueTypeScreenSchemeProjectAssociation;
import software.tnb.jira.validation.generated.model.IssueTypeScreenSchemeUpdateDetails;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeScreenScheme;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeScreenSchemeItem;
import software.tnb.jira.validation.generated.model.PageBeanIssueTypeScreenSchemesProjects;
import software.tnb.jira.validation.generated.model.PageBeanProjectDetails;
import java.util.Set;
import software.tnb.jira.validation.generated.model.UpdateDefaultScreenScheme;

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

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

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

    public IssueTypeScreenSchemesApi(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 appendMappingsForIssueTypeScreenScheme
     * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required)
     * @param issueTypeScreenSchemeMappingDetails  (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 screen scheme, issue type, or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public okhttp3.Call appendMappingsForIssueTypeScreenSchemeCall(String issueTypeScreenSchemeId, IssueTypeScreenSchemeMappingDetails issueTypeScreenSchemeMappingDetails, 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 = issueTypeScreenSchemeMappingDetails; // create path and map variables String localVarPath = "/rest/api/3/issuetypescreenscheme/{issueTypeScreenSchemeId}/mapping" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.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 appendMappingsForIssueTypeScreenSchemeValidateBeforeCall(String issueTypeScreenSchemeId, IssueTypeScreenSchemeMappingDetails issueTypeScreenSchemeMappingDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling appendMappingsForIssueTypeScreenScheme(Async)"); } // verify the required parameter 'issueTypeScreenSchemeMappingDetails' is set if (issueTypeScreenSchemeMappingDetails == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeMappingDetails' when calling appendMappingsForIssueTypeScreenScheme(Async)"); } return appendMappingsForIssueTypeScreenSchemeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeMappingDetails, _callback); } /** * Append mappings to issue type screen scheme * Appends issue type to screen scheme mappings to an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeMappingDetails (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 screen scheme, issue type, or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public Object appendMappingsForIssueTypeScreenScheme(String issueTypeScreenSchemeId, IssueTypeScreenSchemeMappingDetails issueTypeScreenSchemeMappingDetails) throws ApiException { ApiResponse localVarResp = appendMappingsForIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeId, issueTypeScreenSchemeMappingDetails); return localVarResp.getData(); } /** * Append mappings to issue type screen scheme * Appends issue type to screen scheme mappings to an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeMappingDetails (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 screen scheme, issue type, or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public ApiResponse appendMappingsForIssueTypeScreenSchemeWithHttpInfo(String issueTypeScreenSchemeId, IssueTypeScreenSchemeMappingDetails issueTypeScreenSchemeMappingDetails) throws ApiException { okhttp3.Call localVarCall = appendMappingsForIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeMappingDetails, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Append mappings to issue type screen scheme (asynchronously) * Appends issue type to screen scheme mappings to an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeMappingDetails (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 screen scheme, issue type, or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public okhttp3.Call appendMappingsForIssueTypeScreenSchemeAsync(String issueTypeScreenSchemeId, IssueTypeScreenSchemeMappingDetails issueTypeScreenSchemeMappingDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = appendMappingsForIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeMappingDetails, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for assignIssueTypeScreenSchemeToProject * @param issueTypeScreenSchemeProjectAssociation (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: * project is not found. * issue type screen scheme is not found. * the project is not a classic project. -
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 screen scheme or the project are missing. -
*/ public okhttp3.Call assignIssueTypeScreenSchemeToProjectCall(IssueTypeScreenSchemeProjectAssociation issueTypeScreenSchemeProjectAssociation, 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 = issueTypeScreenSchemeProjectAssociation; // create path and map variables String localVarPath = "/rest/api/3/issuetypescreenscheme/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 assignIssueTypeScreenSchemeToProjectValidateBeforeCall(IssueTypeScreenSchemeProjectAssociation issueTypeScreenSchemeProjectAssociation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeProjectAssociation' is set if (issueTypeScreenSchemeProjectAssociation == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeProjectAssociation' when calling assignIssueTypeScreenSchemeToProject(Async)"); } return assignIssueTypeScreenSchemeToProjectCall(issueTypeScreenSchemeProjectAssociation, _callback); } /** * Assign issue type screen scheme to project * Assigns an issue type screen scheme to a project. Issue type screen schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeProjectAssociation (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: * project is not found. * issue type screen scheme is not found. * the project is not a classic project. -
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 screen scheme or the project are missing. -
*/ public Object assignIssueTypeScreenSchemeToProject(IssueTypeScreenSchemeProjectAssociation issueTypeScreenSchemeProjectAssociation) throws ApiException { ApiResponse localVarResp = assignIssueTypeScreenSchemeToProjectWithHttpInfo(issueTypeScreenSchemeProjectAssociation); return localVarResp.getData(); } /** * Assign issue type screen scheme to project * Assigns an issue type screen scheme to a project. Issue type screen schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeProjectAssociation (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: * project is not found. * issue type screen scheme is not found. * the project is not a classic project. -
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 screen scheme or the project are missing. -
*/ public ApiResponse assignIssueTypeScreenSchemeToProjectWithHttpInfo(IssueTypeScreenSchemeProjectAssociation issueTypeScreenSchemeProjectAssociation) throws ApiException { okhttp3.Call localVarCall = assignIssueTypeScreenSchemeToProjectValidateBeforeCall(issueTypeScreenSchemeProjectAssociation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Assign issue type screen scheme to project (asynchronously) * Assigns an issue type screen scheme to a project. Issue type screen schemes can only be assigned to classic projects. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeProjectAssociation (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: * project is not found. * issue type screen scheme is not found. * the project is not a classic project. -
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 screen scheme or the project are missing. -
*/ public okhttp3.Call assignIssueTypeScreenSchemeToProjectAsync(IssueTypeScreenSchemeProjectAssociation issueTypeScreenSchemeProjectAssociation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = assignIssueTypeScreenSchemeToProjectValidateBeforeCall(issueTypeScreenSchemeProjectAssociation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for createIssueTypeScreenScheme * @param issueTypeScreenSchemeDetails An issue type screen scheme bean. (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. -
404 Returned if the issue type or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public okhttp3.Call createIssueTypeScreenSchemeCall(IssueTypeScreenSchemeDetails issueTypeScreenSchemeDetails, 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 = issueTypeScreenSchemeDetails; // create path and map variables String localVarPath = "/rest/api/3/issuetypescreenscheme"; 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 createIssueTypeScreenSchemeValidateBeforeCall(IssueTypeScreenSchemeDetails issueTypeScreenSchemeDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeDetails' is set if (issueTypeScreenSchemeDetails == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeDetails' when calling createIssueTypeScreenScheme(Async)"); } return createIssueTypeScreenSchemeCall(issueTypeScreenSchemeDetails, _callback); } /** * Create issue type screen scheme * Creates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeDetails An issue type screen scheme bean. (required) * @return IssueTypeScreenSchemeId * @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. -
404 Returned if the issue type or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public IssueTypeScreenSchemeId createIssueTypeScreenScheme(IssueTypeScreenSchemeDetails issueTypeScreenSchemeDetails) throws ApiException { ApiResponse localVarResp = createIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeDetails); return localVarResp.getData(); } /** * Create issue type screen scheme * Creates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeDetails An issue type screen scheme bean. (required) * @return ApiResponse<IssueTypeScreenSchemeId> * @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. -
404 Returned if the issue type or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public ApiResponse createIssueTypeScreenSchemeWithHttpInfo(IssueTypeScreenSchemeDetails issueTypeScreenSchemeDetails) throws ApiException { okhttp3.Call localVarCall = createIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeDetails, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Create issue type screen scheme (asynchronously) * Creates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeDetails An issue type screen scheme bean. (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. -
404 Returned if the issue type or screen scheme is not found. -
409 Returned if the issue type is a sub-task, but sub-tasks are disabled in Jira settings. -
*/ public okhttp3.Call createIssueTypeScreenSchemeAsync(IssueTypeScreenSchemeDetails issueTypeScreenSchemeDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeDetails, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for deleteIssueTypeScreenScheme * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme is deleted. -
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 screen scheme is not found. -
*/ public okhttp3.Call deleteIssueTypeScreenSchemeCall(String issueTypeScreenSchemeId, 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/issuetypescreenscheme/{issueTypeScreenSchemeId}" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.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 deleteIssueTypeScreenSchemeValidateBeforeCall(String issueTypeScreenSchemeId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling deleteIssueTypeScreenScheme(Async)"); } return deleteIssueTypeScreenSchemeCall(issueTypeScreenSchemeId, _callback); } /** * Delete issue type screen scheme * Deletes an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme is deleted. -
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 screen scheme is not found. -
*/ public Object deleteIssueTypeScreenScheme(String issueTypeScreenSchemeId) throws ApiException { ApiResponse localVarResp = deleteIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeId); return localVarResp.getData(); } /** * Delete issue type screen scheme * Deletes an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme is deleted. -
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 screen scheme is not found. -
*/ public ApiResponse deleteIssueTypeScreenSchemeWithHttpInfo(String issueTypeScreenSchemeId) throws ApiException { okhttp3.Call localVarCall = deleteIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Delete issue type screen scheme (asynchronously) * Deletes an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme is deleted. -
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 screen scheme is not found. -
*/ public okhttp3.Call deleteIssueTypeScreenSchemeAsync(String issueTypeScreenSchemeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = deleteIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getIssueTypeScreenSchemeMappings * @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 issueTypeScreenSchemeId The list of issue type screen scheme IDs. To include multiple issue type screen schemes, separate IDs with ampersand: `issueTypeScreenSchemeId=10000&issueTypeScreenSchemeId=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 getIssueTypeScreenSchemeMappingsCall(Long startAt, Integer maxResults, Set issueTypeScreenSchemeId, 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/issuetypescreenscheme/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 (issueTypeScreenSchemeId != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "issueTypeScreenSchemeId", issueTypeScreenSchemeId)); } 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 getIssueTypeScreenSchemeMappingsValidateBeforeCall(Long startAt, Integer maxResults, Set issueTypeScreenSchemeId, final ApiCallback _callback) throws ApiException { return getIssueTypeScreenSchemeMappingsCall(startAt, maxResults, issueTypeScreenSchemeId, _callback); } /** * Get issue type screen scheme items * Returns a [paginated](#pagination) list of issue type screen scheme items. Only issue type screen 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 issueTypeScreenSchemeId The list of issue type screen scheme IDs. To include multiple issue type screen schemes, separate IDs with ampersand: `issueTypeScreenSchemeId=10000&issueTypeScreenSchemeId=10001`. (optional) * @return PageBeanIssueTypeScreenSchemeItem * @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 PageBeanIssueTypeScreenSchemeItem getIssueTypeScreenSchemeMappings(Long startAt, Integer maxResults, Set issueTypeScreenSchemeId) throws ApiException { ApiResponse localVarResp = getIssueTypeScreenSchemeMappingsWithHttpInfo(startAt, maxResults, issueTypeScreenSchemeId); return localVarResp.getData(); } /** * Get issue type screen scheme items * Returns a [paginated](#pagination) list of issue type screen scheme items. Only issue type screen 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 issueTypeScreenSchemeId The list of issue type screen scheme IDs. To include multiple issue type screen schemes, separate IDs with ampersand: `issueTypeScreenSchemeId=10000&issueTypeScreenSchemeId=10001`. (optional) * @return ApiResponse<PageBeanIssueTypeScreenSchemeItem> * @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 getIssueTypeScreenSchemeMappingsWithHttpInfo(Long startAt, Integer maxResults, Set issueTypeScreenSchemeId) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemeMappingsValidateBeforeCall(startAt, maxResults, issueTypeScreenSchemeId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type screen scheme items (asynchronously) * Returns a [paginated](#pagination) list of issue type screen scheme items. Only issue type screen 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 issueTypeScreenSchemeId The list of issue type screen scheme IDs. To include multiple issue type screen schemes, separate IDs with ampersand: `issueTypeScreenSchemeId=10000&issueTypeScreenSchemeId=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 getIssueTypeScreenSchemeMappingsAsync(Long startAt, Integer maxResults, Set issueTypeScreenSchemeId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemeMappingsValidateBeforeCall(startAt, maxResults, issueTypeScreenSchemeId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getIssueTypeScreenSchemeProjectAssociations * @param projectId The list of project IDs. To include multiple projects, separate IDs with ampersand: `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 getIssueTypeScreenSchemeProjectAssociationsCall(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/issuetypescreenscheme/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 getIssueTypeScreenSchemeProjectAssociationsValidateBeforeCall(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 getIssueTypeScreenSchemeProjectAssociations(Async)"); } return getIssueTypeScreenSchemeProjectAssociationsCall(projectId, startAt, maxResults, _callback); } /** * Get issue type screen schemes for projects * Returns a [paginated](#pagination) list of issue type screen schemes and, for each issue type screen scheme, a list of the projects that use it. Only issue type screen 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 projects, separate IDs with ampersand: `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 PageBeanIssueTypeScreenSchemesProjects * @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 PageBeanIssueTypeScreenSchemesProjects getIssueTypeScreenSchemeProjectAssociations(Set projectId, Long startAt, Integer maxResults) throws ApiException { ApiResponse localVarResp = getIssueTypeScreenSchemeProjectAssociationsWithHttpInfo(projectId, startAt, maxResults); return localVarResp.getData(); } /** * Get issue type screen schemes for projects * Returns a [paginated](#pagination) list of issue type screen schemes and, for each issue type screen scheme, a list of the projects that use it. Only issue type screen 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 projects, separate IDs with ampersand: `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<PageBeanIssueTypeScreenSchemesProjects> * @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 getIssueTypeScreenSchemeProjectAssociationsWithHttpInfo(Set projectId, Long startAt, Integer maxResults) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemeProjectAssociationsValidateBeforeCall(projectId, startAt, maxResults, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type screen schemes for projects (asynchronously) * Returns a [paginated](#pagination) list of issue type screen schemes and, for each issue type screen scheme, a list of the projects that use it. Only issue type screen 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 projects, separate IDs with ampersand: `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 getIssueTypeScreenSchemeProjectAssociationsAsync(Set projectId, Long startAt, Integer maxResults, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemeProjectAssociationsValidateBeforeCall(projectId, startAt, maxResults, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getIssueTypeScreenSchemes * @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 screen scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param queryString String used to perform a case-insensitive partial match with issue type screen scheme name. (optional, default to ) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type screen scheme name. * `id` Sorts by issue type screen scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts `projects` that, for each issue type screen schemes, returns information about the projects the issue type screen scheme is assigned to. (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 getIssueTypeScreenSchemesCall(Long startAt, Integer maxResults, Set id, String queryString, String orderBy, String expand, 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/issuetypescreenscheme"; 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 (queryString != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("queryString", queryString)); } if (orderBy != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orderBy", orderBy)); } if (expand != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("expand", expand)); } 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 getIssueTypeScreenSchemesValidateBeforeCall(Long startAt, Integer maxResults, Set id, String queryString, String orderBy, String expand, final ApiCallback _callback) throws ApiException { return getIssueTypeScreenSchemesCall(startAt, maxResults, id, queryString, orderBy, expand, _callback); } /** * Get issue type screen schemes * Returns a [paginated](#pagination) list of issue type screen schemes. Only issue type screen 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 screen scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param queryString String used to perform a case-insensitive partial match with issue type screen scheme name. (optional, default to ) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type screen scheme name. * `id` Sorts by issue type screen scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts `projects` that, for each issue type screen schemes, returns information about the projects the issue type screen scheme is assigned to. (optional, default to ) * @return PageBeanIssueTypeScreenScheme * @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 PageBeanIssueTypeScreenScheme getIssueTypeScreenSchemes(Long startAt, Integer maxResults, Set id, String queryString, String orderBy, String expand) throws ApiException { ApiResponse localVarResp = getIssueTypeScreenSchemesWithHttpInfo(startAt, maxResults, id, queryString, orderBy, expand); return localVarResp.getData(); } /** * Get issue type screen schemes * Returns a [paginated](#pagination) list of issue type screen schemes. Only issue type screen 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 screen scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param queryString String used to perform a case-insensitive partial match with issue type screen scheme name. (optional, default to ) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type screen scheme name. * `id` Sorts by issue type screen scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts `projects` that, for each issue type screen schemes, returns information about the projects the issue type screen scheme is assigned to. (optional, default to ) * @return ApiResponse<PageBeanIssueTypeScreenScheme> * @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 getIssueTypeScreenSchemesWithHttpInfo(Long startAt, Integer maxResults, Set id, String queryString, String orderBy, String expand) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemesValidateBeforeCall(startAt, maxResults, id, queryString, orderBy, expand, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type screen schemes (asynchronously) * Returns a [paginated](#pagination) list of issue type screen schemes. Only issue type screen 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 screen scheme IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=10000&id=10001`. (optional) * @param queryString String used to perform a case-insensitive partial match with issue type screen scheme name. (optional, default to ) * @param orderBy [Order](#ordering) the results by a field: * `name` Sorts by issue type screen scheme name. * `id` Sorts by issue type screen scheme ID. (optional, default to id) * @param expand Use [expand](#expansion) to include additional information in the response. This parameter accepts `projects` that, for each issue type screen schemes, returns information about the projects the issue type screen scheme is assigned to. (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 getIssueTypeScreenSchemesAsync(Long startAt, Integer maxResults, Set id, String queryString, String orderBy, String expand, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getIssueTypeScreenSchemesValidateBeforeCall(startAt, maxResults, id, queryString, orderBy, expand, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getProjectsForIssueTypeScreenScheme * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (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 query (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 getProjectsForIssueTypeScreenSchemeCall(Long issueTypeScreenSchemeId, Long startAt, Integer maxResults, String query, 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/issuetypescreenscheme/{issueTypeScreenSchemeId}/project" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.toString())); 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 (query != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("query", query)); } 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 getProjectsForIssueTypeScreenSchemeValidateBeforeCall(Long issueTypeScreenSchemeId, Long startAt, Integer maxResults, String query, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling getProjectsForIssueTypeScreenScheme(Async)"); } return getProjectsForIssueTypeScreenSchemeCall(issueTypeScreenSchemeId, startAt, maxResults, query, _callback); } /** * Get issue type screen scheme projects * Returns a [paginated](#pagination) list of projects associated with an issue type screen scheme. Only company-managed projects associated with an issue type screen scheme are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (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 query (optional, default to ) * @return PageBeanProjectDetails * @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 PageBeanProjectDetails getProjectsForIssueTypeScreenScheme(Long issueTypeScreenSchemeId, Long startAt, Integer maxResults, String query) throws ApiException { ApiResponse localVarResp = getProjectsForIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeId, startAt, maxResults, query); return localVarResp.getData(); } /** * Get issue type screen scheme projects * Returns a [paginated](#pagination) list of projects associated with an issue type screen scheme. Only company-managed projects associated with an issue type screen scheme are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (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 query (optional, default to ) * @return ApiResponse<PageBeanProjectDetails> * @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 getProjectsForIssueTypeScreenSchemeWithHttpInfo(Long issueTypeScreenSchemeId, Long startAt, Integer maxResults, String query) throws ApiException { okhttp3.Call localVarCall = getProjectsForIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, startAt, maxResults, query, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get issue type screen scheme projects (asynchronously) * Returns a [paginated](#pagination) list of projects associated with an issue type screen scheme. Only company-managed projects associated with an issue type screen scheme are returned. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (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 query (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 getProjectsForIssueTypeScreenSchemeAsync(Long issueTypeScreenSchemeId, Long startAt, Integer maxResults, String query, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getProjectsForIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, startAt, maxResults, query, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for removeMappingsFromIssueTypeScreenScheme * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme mappings are removed from the issue type screen scheme. -
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 screen scheme or one or more issue type mappings are not found. -
*/ public okhttp3.Call removeMappingsFromIssueTypeScreenSchemeCall(String issueTypeScreenSchemeId, 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/issuetypescreenscheme/{issueTypeScreenSchemeId}/mapping/remove" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.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, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call removeMappingsFromIssueTypeScreenSchemeValidateBeforeCall(String issueTypeScreenSchemeId, IssueTypeIds issueTypeIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling removeMappingsFromIssueTypeScreenScheme(Async)"); } // verify the required parameter 'issueTypeIds' is set if (issueTypeIds == null) { throw new ApiException("Missing the required parameter 'issueTypeIds' when calling removeMappingsFromIssueTypeScreenScheme(Async)"); } return removeMappingsFromIssueTypeScreenSchemeCall(issueTypeScreenSchemeId, issueTypeIds, _callback); } /** * Remove mappings from issue type screen scheme * Removes issue type to screen scheme mappings from an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme mappings are removed from the issue type screen scheme. -
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 screen scheme or one or more issue type mappings are not found. -
*/ public Object removeMappingsFromIssueTypeScreenScheme(String issueTypeScreenSchemeId, IssueTypeIds issueTypeIds) throws ApiException { ApiResponse localVarResp = removeMappingsFromIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeId, issueTypeIds); return localVarResp.getData(); } /** * Remove mappings from issue type screen scheme * Removes issue type to screen scheme mappings from an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme mappings are removed from the issue type screen scheme. -
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 screen scheme or one or more issue type mappings are not found. -
*/ public ApiResponse removeMappingsFromIssueTypeScreenSchemeWithHttpInfo(String issueTypeScreenSchemeId, IssueTypeIds issueTypeIds) throws ApiException { okhttp3.Call localVarCall = removeMappingsFromIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeIds, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Remove mappings from issue type screen scheme (asynchronously) * Removes issue type to screen scheme mappings from an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen 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 screen scheme mappings are removed from the issue type screen scheme. -
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 screen scheme or one or more issue type mappings are not found. -
*/ public okhttp3.Call removeMappingsFromIssueTypeScreenSchemeAsync(String issueTypeScreenSchemeId, IssueTypeIds issueTypeIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = removeMappingsFromIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateDefaultScreenScheme * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param updateDefaultScreenScheme (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 screen scheme or the screen screen is not found, or the screen scheme isn't used in classic projects. -
*/ public okhttp3.Call updateDefaultScreenSchemeCall(String issueTypeScreenSchemeId, UpdateDefaultScreenScheme updateDefaultScreenScheme, 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 = updateDefaultScreenScheme; // create path and map variables String localVarPath = "/rest/api/3/issuetypescreenscheme/{issueTypeScreenSchemeId}/mapping/default" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.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 updateDefaultScreenSchemeValidateBeforeCall(String issueTypeScreenSchemeId, UpdateDefaultScreenScheme updateDefaultScreenScheme, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling updateDefaultScreenScheme(Async)"); } // verify the required parameter 'updateDefaultScreenScheme' is set if (updateDefaultScreenScheme == null) { throw new ApiException("Missing the required parameter 'updateDefaultScreenScheme' when calling updateDefaultScreenScheme(Async)"); } return updateDefaultScreenSchemeCall(issueTypeScreenSchemeId, updateDefaultScreenScheme, _callback); } /** * Update issue type screen scheme default screen scheme * Updates the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param updateDefaultScreenScheme (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 screen scheme or the screen screen is not found, or the screen scheme isn't used in classic projects. -
*/ public Object updateDefaultScreenScheme(String issueTypeScreenSchemeId, UpdateDefaultScreenScheme updateDefaultScreenScheme) throws ApiException { ApiResponse localVarResp = updateDefaultScreenSchemeWithHttpInfo(issueTypeScreenSchemeId, updateDefaultScreenScheme); return localVarResp.getData(); } /** * Update issue type screen scheme default screen scheme * Updates the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param updateDefaultScreenScheme (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 screen scheme or the screen screen is not found, or the screen scheme isn't used in classic projects. -
*/ public ApiResponse updateDefaultScreenSchemeWithHttpInfo(String issueTypeScreenSchemeId, UpdateDefaultScreenScheme updateDefaultScreenScheme) throws ApiException { okhttp3.Call localVarCall = updateDefaultScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, updateDefaultScreenScheme, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update issue type screen scheme default screen scheme (asynchronously) * Updates the default screen scheme of an issue type screen scheme. The default screen scheme is used for all unmapped issue types. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param updateDefaultScreenScheme (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 screen scheme or the screen screen is not found, or the screen scheme isn't used in classic projects. -
*/ public okhttp3.Call updateDefaultScreenSchemeAsync(String issueTypeScreenSchemeId, UpdateDefaultScreenScheme updateDefaultScreenScheme, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateDefaultScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, updateDefaultScreenScheme, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for updateIssueTypeScreenScheme * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeUpdateDetails The issue type screen scheme update details. (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 screen scheme is not found. -
*/ public okhttp3.Call updateIssueTypeScreenSchemeCall(String issueTypeScreenSchemeId, IssueTypeScreenSchemeUpdateDetails issueTypeScreenSchemeUpdateDetails, 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 = issueTypeScreenSchemeUpdateDetails; // create path and map variables String localVarPath = "/rest/api/3/issuetypescreenscheme/{issueTypeScreenSchemeId}" .replace("{" + "issueTypeScreenSchemeId" + "}", localVarApiClient.escapeString(issueTypeScreenSchemeId.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 updateIssueTypeScreenSchemeValidateBeforeCall(String issueTypeScreenSchemeId, IssueTypeScreenSchemeUpdateDetails issueTypeScreenSchemeUpdateDetails, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueTypeScreenSchemeId' is set if (issueTypeScreenSchemeId == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeId' when calling updateIssueTypeScreenScheme(Async)"); } // verify the required parameter 'issueTypeScreenSchemeUpdateDetails' is set if (issueTypeScreenSchemeUpdateDetails == null) { throw new ApiException("Missing the required parameter 'issueTypeScreenSchemeUpdateDetails' when calling updateIssueTypeScreenScheme(Async)"); } return updateIssueTypeScreenSchemeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeUpdateDetails, _callback); } /** * Update issue type screen scheme * Updates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeUpdateDetails The issue type screen scheme update details. (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 screen scheme is not found. -
*/ public Object updateIssueTypeScreenScheme(String issueTypeScreenSchemeId, IssueTypeScreenSchemeUpdateDetails issueTypeScreenSchemeUpdateDetails) throws ApiException { ApiResponse localVarResp = updateIssueTypeScreenSchemeWithHttpInfo(issueTypeScreenSchemeId, issueTypeScreenSchemeUpdateDetails); return localVarResp.getData(); } /** * Update issue type screen scheme * Updates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeUpdateDetails The issue type screen scheme update details. (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 screen scheme is not found. -
*/ public ApiResponse updateIssueTypeScreenSchemeWithHttpInfo(String issueTypeScreenSchemeId, IssueTypeScreenSchemeUpdateDetails issueTypeScreenSchemeUpdateDetails) throws ApiException { okhttp3.Call localVarCall = updateIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeUpdateDetails, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Update issue type screen scheme (asynchronously) * Updates an issue type screen scheme. **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). * @param issueTypeScreenSchemeId The ID of the issue type screen scheme. (required) * @param issueTypeScreenSchemeUpdateDetails The issue type screen scheme update details. (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 screen scheme is not found. -
*/ public okhttp3.Call updateIssueTypeScreenSchemeAsync(String issueTypeScreenSchemeId, IssueTypeScreenSchemeUpdateDetails issueTypeScreenSchemeUpdateDetails, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updateIssueTypeScreenSchemeValidateBeforeCall(issueTypeScreenSchemeId, issueTypeScreenSchemeUpdateDetails, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }