1. Add a new Custom Script Field.
2. In the Script Field import a class which exists in the Script Files, invoke a method don't use the logger.
3. Run a preview test
The result tab returns null but the log prints out an error that it is unable to detect the packages. However, if the script file itself is added it is able to execute without problem
The result tab is expected print the output without any error if the log is not used. If the log is used, then the result should be printed in the log.
Below is a video for your reference to reproduce the issue
The test1 video is the test run on Jira 7 and the test2 video is for Jira 8