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!
Hello, @Tomislav Nikolic did you find an answer? or any update? we have similar problem in work with java api
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.