I'm using this code to create customer request using JAVA API's
serviceDeskCustomerRequestService.
createCustomerRequest(applicationUser, serviceDeskCustomerRequestService.newCreateBuilder().raiseOnBehalfOf("username") .serviceDesk(serviceDesk).requestType(requestType).fieldValue(FieldId.withId("summary"), FieldInputValue.withValue("summary value")).fieldValue(FieldId.withId("description"), FieldInputValue.withValue("description value")).customerRequestChannelSource("Customer Channel Value").build());
If I used it as it is, it works, but when using it inside a schedular (thread) it stopped working for the below issue
com.atlassian.servicedesk.api.BadRequestException: The issue type selected is invalid. com.atlassian.servicedesk.api.BadRequestException: The issue type selected is invalid. at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.httpStatusCodeToException(EitherExceptionUtils.java:95) at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.lambda$anErrorEitherToException$0(EitherExceptionUtils.java:36) at io.atlassian.fugue.Either$Left.fold(Either.java:586) at com.atlassian.servicedesk.internal.api.util.EitherExceptionUtils.anErrorEitherToException(EitherExceptionUtils.java:32) at com.atlassian.servicedesk.internal.feature.customer.request.ServiceDeskCustomerRequestServiceImpl.createCustomerRequest(ServiceDeskCustomerRequestServiceImpl.java:45)
Anyone is facing this issue?