We have created an API that we are attempting to call with a script fragment, however the URL needs to pass in the last JQL ran. Is it possible to call with the fragment
/api..../filter=${currentsearch}
or is there a way within scriptrunner to get the last JQL ran which we can pass into the API call we created in scriptrunner?