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

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 Leaders.
May 18, 2020

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events