Hi,
I have this code in Post Functions
CustomerRequestQuery customerRequestQuery = CustomerRequestQuery.Builder.issue(issue.id).build()
CustomerRequest customerRequest = ServiceDeskCustomerRequestService.getCustomerRequests(userManager.getUserByName("jira"), customerRequestQuery)right.results[0]
RequestParticipantUpdateParameters requestParticipantUpdateParameters = RequestParticipantUpdateParameters.Builder.customerRequest(customerRequest).build()
//And later in code:
RequestParticipantService.addRequestParticipants(user, requestParticipantUpdateParameters)
And I have no errors in editor, I've got all needed imports. But when I made issue which use this post function, I got error (in logs):
2019-07-19 11:46:05,856 ERROR [workflow.ScriptWorkflowFunction]: ************************************************************************************* 2019-07-19 11:46:05,856 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: IT-14477, actionId: 1, file: <inline script> groovy.lang.MissingMethodException: No signature of method: static com.atlassian.servicedesk.api.request.CustomerRequestQuery$Builder.issue() is applicable for argument types: (java.lang.Long) values: [154533] Possible solutions: use([Ljava.lang.Object;), isCase(java.lang.Object), is(java.lang.Object), sleep(long), inspect(), use(java.lang.Class, groovy.lang.Closure) at Script777.run(Script777.groovy:53)
Do anybody have idea how to fix it?