from a custom html app i am trying to get the user story (FormattedID) that was created from a Converted Defect.
I can see that the user story# is on the revision history of the defect, but when i am trying to get it, the revision number is not bring back.
The following is what i am using but, i am not getting what i need, is there an alternative route to get the user story that was derived from a converted Defect?
// revisions
var uno = Ext.create('Rally.data.lookback.SnapshotStore', {
filters: [
//{property: '_TypeHierarchy',operator: 'in',value: ['Defect','User Story']},
//{property: '_ProjectHierarchy',operator: '=',value: 198460325},
{property: 'ObjectID',operator: 'in',value: misDefectsFilter}
],
fetch: ['Name','FormattedID','ScheduleState','State','Owner','Resolution','_ValidFrom','_ValidTo','_PreviousValues','_RevisionNumber'],
hydrate: ['State','ScheduleState','Resolution','_PreviousValues'],
limit: Infinity,
autoLoad: false,
removeUnauthorizedSnapshots: false
});
uno.load({
callback: function(records, operation) {
if(operation.wasSuccessful()) {
//process records
misDefectRevisions = records;
Rally.getApp()._onDataLoaded();
}
}
});