Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner Fragment Variable

Kevin Dalton
Contributor
September 22, 2021

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?

1 answer

1 accepted

0 votes
Answer accepted
Kevin Dalton
Contributor
September 22, 2021

We were able to handle this by using the following

String referrer = request.getHeader("referer")

Suggest an answer

Log in or Sign up to answer