1

I am trying to get all the "_PreviousValues" of a field.

For example, the state of a defect have changed from "Open" => "Fixed" => "Closed".

I would like to get all history of the state, but not just the previous value.

Thanks!

user2099986
  • 137
  • 1
  • 9

1 Answers1

1

LookbackAPI returns historic versions (snapshots) of objects. To get a history of state transitions you need to get all snapshots where transition happened, which can be achieved by using "_PreviousValues.State":{"$exists":true} condition.

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/111/artifact/snapshot/query.js?find={"Project":222,"_TypeHierarchy":"Defect","_PreviousValues.State":{"$exists":true}}&fields=["ObjectID","_ValidFrom","_ValidTo","FormattedID","State","_PreviousValues.State"]&hydrate=["State","_PreviousValues.State"]&compress=true
nickm
  • 5,936
  • 1
  • 13
  • 14
  • Follow up: I managed to get the data using the lookbackapi based on the selected release(release combobox). Now, I am trying to display the parsed data using a grid. When the select event fires from the combobox, it takes 2-3 seconds for the grid to display the loading... gif. I am wondering if there is a way to display that loading gif as soon as the select event fires. – user2099986 Aug 26 '14 at 16:24
  • Found the setLoading function on the grid. THANKS – user2099986 Aug 26 '14 at 18:05