There is a known limitation for Jira 7
of not having more than 65000 issues matching a condition in a function. If, when using the
the expected results are greater than 65000, the message "An unknown error occurred while trying to perform a search."
will be displayed.