We embed may JQL queries in our Confluence documents. The main use case is to list related issues. Thus we have many Jira macros to different Jira issues in our documents. For example:
issueFunction in linkedIssuesOf("key=PRDMGT-53", "Implemented by"). This worked great prior to our recent migration from Jira Server to Jira Cloud.
I am aware that the ScriptRunner Enhanced query can be saved as a filter from within the Enhanced Search page and then I could display the results of that filter within a Confluence page via the Jira macro. However, that requires that I create a unique saved filter for every issue I want to run the enhanced search on. On the server version I could simply place the query in confluence. Now I must create a unique filter and call that unique filter from confluence. That makes referencing linked issues from confluence impractical for us.
Could there be a way to have an argument or parameter passed in to an enhanced search or better yet, support ScriptRunner Enhanced as normal Jira JQL?