project = CR AND issuetype in (CR) AND fixVersion in (1.1.R01) AND reporter in (John) AND priority in (Major, Minor) AND issueFunction in linkedIssuesOf("project = EPIC AND issuetype in (task) AND summary !~ 'Risk' AND fixVersion = 1.1R1", "is failed by") OR issueFunction in linkedIssuesOf("project = EPIC AND issuetype in (task) AND summary !~ 'Risk' AND fixVersion = 1.1R1", "needs fix") ORDER BY priority DESC, updated DESC
Above syntax returns, both categories "is failed by" and "needs fix".
However, I'd like to make it simple and include the "needs fix" along with "is failed by" in the filter instead of using the OR operation.