All in the question, how do I print to console. The log.info "Hello World" didn't work for me. In addition, how do you guys debug Scriptrunner?
Thanks
The bluntest way to do it is System.out.println("your text") but see https://www.adaptavist.com/doco/display/SFJ/Set+logging+to+help+debug+your+scripts for a better way to do it
I tried that in the service endpoint script and when I checked the logs after the script was fired, I didn't see the message.
I guess my question should be to you is: can I print out stuff in the service endpoint script? I was unable to print it from the methods listed here:
https://scriptrunner.adaptavist.com/4.3.3/jira/rest-endpoints.html
I put it in the GET method.
Then it's not executing the log line for some reason. Is the script failing or exiting before it gets to the log line?
It looks like you're new here. Sign in or register to get started.