The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CreateCustomerRequestService Service Desk Java api Request

Tomislav Nikolic
November 7, 2018

Hey guys, I recently discovered the Jira Service Desk Java API and exploring it a bit. I've been trying to raise a request via some rest endpoint that takes a model with request data and calls the createCustomerRequest method of ServiceDeskCustomerRequestService.

This is what I came up with so far, 

 

CustomerRequestCreateParameters createParams = sdCustomerReqServ.newCreateBuilder()
.serviceDesk(sd) //ServiceDesk
.requestType(rqType) //RequestType
.fieldValue(FieldId.withId("description"), FieldInputValue.withValue("aaaaaaaaaa"))
.fieldValue(FieldId.withId("summary"), FieldInputValue.withValue("aaaaaaaaaa"))
.customerRequestChannelSource(CustomerRequestChannelSource.PORTAL)
.build();

And then 

sdCustomerReqServ.createCustomerRequest(executionUser, createParams);

Above parameters (ServiceDesk, RequestType) are all fetched nicely and correctly. I'm testing this on a Basic Service Desk project.

The problem is this message I get in the log: 

Request creation caused a validation error that should
have been handled by JSD code instead of JIRA: The issue type selected is invalid.

I'm looking forward to answers, hope somebody can shine some light on this. Thanks!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Yevhen Rohovets
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 18, 2020

Hello, @Tomislav Nikolic did you find an answer? or any update? we have similar problem in work with java api

TAGS
AUG Leaders

Atlassian Community Events