Trying to the same thing at this article but with the issue.summary and several custom fields:
https://scriptrunner.adaptavist.com/latest/jira/fragments/WebItem.html#_tools_menu_link
Which lead me to this:
And I found myself creating a REST Endpoint (successfully)... but when I get to the part with "/rest/scriptrunner/latest/custom/buttonLink?issueId=${issue.id}" it no longer resembles a google query. Not only that, but I have about 5 other custom fields I'm trying to concatenate against the search engine.