Hello ,
I am using relatedIssuesByQuery function to get the results that I wanted .
project = TEST1 AND type in ("Problem Report") AND status not in ("Closed","Verified","Solved",Rejected) AND Issue in relatedIssuesByQuery("project = TEST1 AND type = \"Contributor Task\" AND status in (Verified, Rejected) and component in (\"TEST1_O\", \"TEST1_T\")", "Issue in parentsOf(\"key = SELF_VALUE\")")
TEST1_O,TEST2_T are the components of TEST1, I want to fetch all the tickets of TEST1 where the TEST1_O and TEST2_O are in Verified, Rejected, this works well, however sometimes there may be two components level tickets of TEST1_O and TEST2_O in single TEST! ticket, so I want to check if all the TEST1_O and TEST1_T are in the state mentioned in inner query