I made a macro in scriptruner, this macro is lazy loaded. I need to get the pageName and the spaceKey so i get them in the javascript of the macro and i do a call to a scriptrunner RestEndpoint.
In this RestEndpoint i made JiraLink to get issues from jira.
When i call the macro it works well but when i do a call to the RestEndpoint from another java plugin or postman the jiraLink won't return data.
Why ? Does scriptrunner RestEndpoint can be used only by scriptrunner element ?