I want to query subtasks with the status "Ready To Deploy" when the parent story or task's status is "Done." This is my JQL, but it doesn't work.
project = "XX" AND issuetype in subTaskIssueTypes()
and status = "READY TO DEPLOY"
and parent in (
issueFunction(issuetype = story, status = DONE) )
ORDER BY created ASC