Adaptavist Update 18/12/2020:
Thanks for taking the time to upvote this feature request. I’m pleased to say that we will start development on this in mid-January next year!
The plan is to let you define your own/preferred “JQL Search Term” when creating/edited a Scripted Field which you can then use in JQL searches (just like you do with custom fields currently) in native Jira search, or ScriptRunner Enhanced Search.
If you would like to be added to our early-release cohort, so that you can test this feature and give us feedback prior to a general release then please let me know (along with your Atlassian site URL) via email: email@example.com
Product Manager - ScriptRunner for Jira Cloud