Forums

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

Why JsonBuilder isn't work in the workflow transition validator? Post-request by scriptrunner

Aoka Aoki June 17, 2020

Hi,

I am trying to call a post-request on a workflow transition validator.
The script runs in the console of the scriptrunner plugin, despite the error that the variable [body] has not been declared. The post-request is called successfully and returns the results.
But on the transition screen I got error:

Screenshot_4.png
According to the logs nothing is clear either: ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=25f13b5a-a7e6-4b69-a7e4-3183d0832a21, interpretedMsg=, cause=java.lang.StackOverflowError, stacktrace=java.lang.StackOverflowError
, referer=https://edited/browse/AAA-1670, servletErrorMessage=}

The script breaks in the line where JsonBuilder is used, before calling the post-request. There is no log entry with the value of variable "body1" ( It’s just for verification, in the console works).
JsonBuilder not working on validator?
How else can I pass the body of the post-request?

Screenshot_5.png

 

 

0 answers

Suggest an answer

Log in or Sign up to answer