I have the following ScriptRunner Enhanced Search which is creating a sync timeout error with the corresponding Jira filter.
project = "MyProject” AND issueType = Epic AND status = "In Progress" and issueFunction not in epicsOf(Created >= startOfYear(-1) and issuetype in (Story, Task,Bug, Spike))
I'm also getting a Forge compatibility warning that the issueFunction query returns more than 1000 values and takes over 25 seconds to process. What can I do to optimize this query?