title: Rally python REST: Query all tasks from chosen iteration
body: <p>I'm trying to query all tasks from a specific iteration using the python toolkit for the rally <a href="http://pyral.readthedocs.org/en/latest/overview.html" rel="nofollow">REST API</a>. The iteration will be chosen at run-time.</p>
  
  <p>However I have been unable to set up the right query. I feel like i'm missing something small but important here.</p>
  
  <p>This is the code:</p>
  
  <pre><code>query_criteria = 'Iteration.Name = "2014 november"'
  response = rally.get('Task', fetch=True, query=query_criteria)
  if response.errors:
      sys.stdout.write("\n".join(response.errors))
      sys.exit(1)
  for Task in response:
      if getattr(Task,"Iteration"):
              print "%s %s" % (Task.Name,Task.Iteration.Name)
  </code></pre>
  
  <p>It will receive 0 rows in response.</p>
  
  <p>If I remove <code>, query=query_criteria</code> and fetch all tasks, then i can see that there are tasks where the Task.Iteration.Name value is 2014 November.</p>
  
  <p>The query does not give an error so I assume that the values of related objects (task->Iteration) are able to be included in the query. Yet I receive 0 rows in response.</p>
  
  <p>Could the reason be that some tasks do not seem to be attached to an iteration?</p>
  
  <p>One solution would be to fetch all tasks and then filter them afterwards. But that seems dirty.  </p>