I am facing an issue with LookBack API.
I want to get all the defects, which are in Submitted State to show in a chart as per on a date in range. I am able to retrieve the defects, based on State.
However when I use
{
"_TypeHierarchy" : "Defect",
"Project":<ProjectID>,
"Release" :<ReleaseOID>,
"_PreviousValues.State" : { $lt : "Submitted"},
"State" : "Submitted" ,
"_ValidFrom" : {
$gte : "2014-02-24TZ",
$lt: "2014-02-26TZ"
}
}
This returns to me all the defects, which have been modified in either way, which may be the owner or any general edit.Hence the result count is quite large. I want only based on State. Is this possible, Am I trying something wrong.
I also tried to fetch only the version number, 0, for the same. But this is not a good solution, since I also need to show the closed defects as well, and they will never be in Revision 0.
I cant use at, because it supports only equals operator. Please help me, I think I am missing something quite simple here, but cant figure out on my own.