The problem is that I can't separate the query into several.
I need one query for every issue of the list or what is the same, a query for each row.
Thanks for your answer.
This post describes a technique that migth also be used to solve the problem of refreshing Jira modified content pack.
From the post:
"To support scheduled refresh, follow these guidelines:
Ensure that your custom functions are defined in the same query that accesses the external data sources that are needed for the end-result. Don’t use references to other queries, which access external sources."
What do you think?