title: How can I write a TFS Work Item Query filtered by direct links, but not display the children
body: <p>I am trying to write a TFS (2013) query to use as a check in rule (using the TFS Power Tools). I want to allow the user to check in against a requirement that is RESOLVED, and who's child tasks are all in the CLOSED state.</p>
  
  <p>Using the "Work item and direct links" query type, I am able to return all the requirements that are eligible for association during check in. The problem is, the query will also return the child tasks, as below:</p>
  
  <pre><code>Requirement: This is my Requirement          [Resolved]
  Task       :   + This is the child task      [Closed]
  </code></pre>
  
  <p>The idea is that in a branch people check their work in against the Tasks. When all the work is complete, and the tasks are closed, the branch can be merged. The requirement being moved to Resolved marks the work as complete, and ready for merge. It is the merge check in association that I want to validate with this query.  The Team Lead verifies that the work has been completed to their satisfaction and performs the merge, checking in the code against the requirement. </p>
  
  <p>How can I have my query return only the requirement work item, and not the task, whilst retaining the filtering?</p>