On our project we want to track of cycle time for stories, tasks and sub-tasks. In using the control-chart we need to avoid double-counting where a story or task has sub-tasks (simple stories or tasks don't have sub-tasks in our world).
So I'd like to have a filter that would be a disjunction of sorts - include all sub-tasks, and only stories and tasks that have no sub-tasks.
looking through the JQL documentation I can't see a way to do this