Please help me with writing proper JQL for this.
Sometimes tasks have lots of sub-tasks, and it is perfectly OK for them being on the board during work on them. However, with time sub-tasks will be resolved to Done column. And as soon as parent task is also finished and moved to Done - there is no sense to keep and shop all its subtasks there.
I tried something like
issuetype in (Sub-task, Defect) AND issueFunction in portfolioChildrenOf("Status = Done") However without success.