d8c5c8fcafa6fd974ad630181659f30b1

query the workproduct schedulestate of a task

Discussion created by d8c5c8fcafa6fd974ad630181659f30b1 on Sep 8, 2014
Latest reply on Sep 11, 2014 by John_Streeter
I want to create a query that shows the tasks of the current iteration where the task is tagged with "review" and the work product is in the "completed" state.

I thought this would work:
((WorkProduct.ScheduleState = "Completed") AND ((Tags.Name = "Review") AND ((Iteration.StartDate <= today) AND (Iteration.EndDate >= today))))

But it gives me an error
Could not parse: Could not find attribute "WorkProduct.ScheduleState" on type Task in the query segment "WorkProduct.ScheduleState"

Can someone help me construct the right query?

FYI: the query works with out the WorkProduct.ScheduleState item in there.

Outcomes