I have User Stories , and want to track the changes in a custom field C_L3KanbanStage, for my stories in between a date.
Is this possible. The problem I am facing, is that, I am not getting expected output.
As per my understanding, this field C_L3KanbanStage, being a drop down field, I should be able to use the comparison operators, but somehow it is not working
{
"_ProjectHierarchy": XXXXX,
"ObjectID": XXXX,
"c_L3KanbanStage": {
"$lt": "Closed"
},
"_ValidFrom": {
"$gte": "2014-03-03",
"$lt": "2014-04-15"
}
}
It should give me all lesser values then "Closed", but it gives me only one value.
However, if I try:
{
"_ProjectHierarchy": XXXX,
"ObjectID": XXXX,
"c_L3KanbanStage": "In Progress",
"_ValidFrom": {
"$gte": "2014-03-03",
"$lt": "2014-04-15"
}
}
Then it gives me two snapshots. I am not sure, if I am trying something wrong or missing something. Can somebody please help me on this.
Basically I want to achieve something like, within two dates I want to get each transition in the value for c_L3KanbanStage
{
"_ProjectHierarchy": XXXXX,
"ObjectID": XXXXX,
"_PreviousValues.c_L3KanbanStage": {"$in": ["Advance Investigation"]},
"c_L3KanbanStage": {"$in": ["Closed","Verified"]}
}
Can any one please help me on the same.