Forums

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

I have script validation on create transition not working properly on Jira Service Desk Portal.

srinivasa_pudi June 12, 2015

I have a validation on Cascade select i.e second level of field in mandatory. it is throwing an error message while creating a ticket in JIRA but not working while creating from JIRA service desk(Customer portal)

2 answers

1 vote
adammarkham
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.
March 18, 2016

There currently seems to be a JIRA service desk bug affecting workflow validators. Note that using the following will not work:

import com.opensymphony.workflow.InvalidInputException
 
throw new InvalidInputException("In Progress", "This won't work")

Resulting in a error message being shown and an exception in the logs:

17-Mar-2016 02:18:26.669 WARNING [http-nio-8080-exec-5] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI https://jira-dev.cloud.twc.net/rest/servicedesk/1/customer/pages/portal/35/create/176, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
2016-03-17 02:18:31,508 http-nio-8080-exec-5 ERROR E030362 138x3704x1 6xsaf5 204.235.114.164,192.168.0.171 /servicedesk/customer/portal/35/create/176 [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: messages must have at least one entry
java.lang.IllegalArgumentException: messages must have at least one entry
	at com.atlassian.pocketknife.api.commons.error.ErrorBuilder.buildSingleError(ErrorBuilder.java:107)
	at com.atlassian.pocketknife.api.commons.jira.ErrorCollectionHelper.error(ErrorCollectionHelper.java:22)
	at com.atlassian.servicedesk.internal.feature.customer.request.CustomerRequestManager.com$atlassian$servicedesk$internal$feature$customer$request$CustomerRequestManager$$createCustomerRequest(CustomerRequestManager.scala:109)
	at

But interestingly as a workaround this will work:

import com.opensymphony.workflow.InvalidInputException
 
throw new InvalidInputException("This will work")
1 vote
JamieA
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.
June 12, 2015

It's a bug in JSD, it fails to show validation errors. Maybe: https://jira.atlassian.com/browse/JSD-1638

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events