Question is: where exactly to store the new class for the Scriptrunner JQL function before using scan?
Please don't point me to the documentation, if I found it there, I wouldn't be asking.
You need to store the class under the com.onresolve.jira.groovy.jql package in order for it to be found.
The documentation states this on this page, there's a bit more information on getting them set up there too if you need any further help.
Please let me know if you have any other questions. :)