So problem is because
data
should be replaced bydata.project
but how to do it?
Either you add the line data = data.project;
on top of your seqEach
callback, or you inject a mapping function like
.map(function(d) { return d.project; })
into your chain. Or you just change the pivotal.getProjects
method…