AnsweredAssumed Answered

Retrieving Revisions from Revision History

Question asked by vijayakumar.balraj on Jun 19, 2018
Latest reply on Jun 20, 2018 by Sagi_Gabay

Hi,

 

I am trying to retrieve revisions on an user story. For some reason, it does not provide the revision data. Please see screenshots and code snippets below. 

 

Ext.create('Rally.data.wsapi.artifact.Store', {
models: ['UserStory'],
autoLoad: true,
limit: Infinity,
context: {
project: null
},
projectScopeUp: true,
projectScopeDown: true,
listeners: {
scope: this,
load: function (store, userstories, success) {
console.log('_getUserStories');
console.log(userstories);

// Rally Revision History
Ext.Array.each(userstories, function (story) {
Ext.Array.each(story.get('RevisionHistory').Revisions, function (rev) {
console.log('Revisions');
console.log(rev);
});
});
deffered.resolve([features, userstories]);
}


},
filters: featurefilter,
fetch: ['Project', 'ObjectID', 'Owner', 'Owner.Role', 'Role', 'RevisionHistory', 'Revisions', 'RevisionNumber', 'CreationDate', 'User']
});

 

Output:

 

 

Revision History details

Outcomes