You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I was trying to create a customer request using Java API using the code below
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());
Using this code outside a thread is working fine the request is created SLA is started and everything is working as expected, but adding adding the same code inside a thread it throws this exception
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)
Is there a way to create a customer request inside a thread without getting any exception.
Thanks in advance