Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,752
Community Members
 
Community Events
184
Community Groups

Create Customer Request Using Java API

Hi,
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 

0 comments

Comment

Log in or Sign up to comment