I've created a button that is supposed to copy all issues, filtered from the search query, by the current user.
The problem I have is that I can't seem to find a way to obtain the current search query that the user is using.

Is there a way I can get the current value of the search query field ?
Is the value of the query saved somewhere?
I've tried SearchRequestService with no success so far.
Thanks for the help!