I have Sciptrunner and tried many JQL's but still not getting correct result.
My requirement is When all sub-tasks are Resolved for a parent and parent status should not be Resolved.
I tried below JQL's
project = RQM AND issueFunction in parentsOf("status in (\"Open\", Pending, \"In Progress\") AND Resolution is Empty") AND issueFunction not in subtasksOf("status != Resolved")
project = "RQM" and issueFunction in subtasksOf('status not in (Closed, Canceled, Resolved)') AND Status = Resolved
This one is close enough but still fetching some parents which subtasks have pending status.