I am trying to get all issues that have linked issues of a defined type with a defined state which also have linked issues of a defined type with a defined state.
The first part was easy
get all issues that have linked issues of a defined type with a defined state
project = PName AND issuetype in (Requirement) AND status in (Approved) AND issueFunction in linkedIssuesOf("issuetype in (Epic)")
I now tried to add a subquery to the linkedIssuesOf() function to filter for linked stories which failed
project = PName AND issuetype in (Requirement) AND status = Approved AND issueFunction in linkedIssuesOf("issuetype in (Epic) AND issueFunction in linkedIssuesOf('issuetype in (Story)')")