I want to show all "new" tasks that are not blocked by another task
In other words, I want to see a list of tasks that can be started.
Right now, I came up with the following query that shows these tasks, but only if the task was depending on another task that is now ready. What is missing are the tasks that have no dependency on other tasks at all.
Type is "Task"
Status is "New (Default Workflow)" or "Reopened (Default Workflow)"
Depends On > Status is "Resolved"
I've also tried to negate the last condition into: Depends On > Status is not "Unresolved"
But that makes no difference.
Please help me getting this query right...
Ronald van der Laan
Accepted answer
One other answer
Comments
I'll defer to folks like Ralph for what can be done through the Java API.
Hmm,
Wouldn't negating the query "Depends On > Status" is "Resolved" into "Depends On > Status" is not "Unresolved" solve that multiple depends on problem?
Ronald.
Yes, negating the query would solve the problem, but the graphical query builder does not provide a "not" operation that you can apply a query expression (it only provides "and" and "or" operations, although some of the leaf terms do support a "not" on just that single term).
This question comes up reasonably frequently, but I couldn't find a work item for it, so I created Provide a "not" operator in the graphical work item query builder (309582) . Feel free to add a comment indicating your interest/support.
Comments
sam detweiler
Mar 26 '14, 9:17 a.m.add another condition set using OR with the first
Ronald van der Laan
Mar 26 '14, 11:14 a.m.Sam,
Thanks for your answer.
But this gives me all tasks that are in the "new" state, also the ones that are blocked by other tasks.
What I want to know, is the tasks that have not been started, but can be right now (if there were people available to work on them)...
Ronald
sam detweiler
Mar 26 '14, 12:22 p.m.I don't know how to write the algorithm , but if you can write it down, we might be able to make a query out of it.