The answer may well be "don't do that" but it seems like a legitimate use case to me.
We have an issue type ("Job") which allows subtasks ("Tasks"), but which do not always have subtasks.
We set time estimates on the subtasks, but if there aren't any subtasks (it is a straightforward job which doesn't need breaking up into components) we just set a time estimate on the Job itself.
I would like to query for all issues which should have a time estimate but don't, i.e. "All Jobs and Tasks except Jobs which have subtasks" or "All Tasks and also Jobs which don't have subtasks". I'm trying to avoid creating a separate issue type for the "simple job"s
My JQL looks like this currently:
project = MyProject and issuetype in ("Job", "Task" ) and status not in (resolved, closed) and fixVersion in unreleasedVersions() and timeestimate is empty
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events