Skip to content

Instantly share code, notes, and snippets.

@paulfalgout
Last active February 7, 2016 04:10
Show Gist options
  • Save paulfalgout/e11a8285b740a4faa46b to your computer and use it in GitHub Desktop.
Save paulfalgout/e11a8285b740a4faa46b to your computer and use it in GitHub Desktop.
RoundingWell - Leankit Oldest 2 mo
// var data = [ copy/paste results of https://roundingwell.leankit.com/kanban/api/boards/193188337 ]
// Change this to get a different range
var ago = _.moment().subtract('month', 2);
var lanes = data.ReplyData[0].Lanes;
var cards = _.flatten(_.map(lanes, 'Cards'),true);
var oldCards = _.reject(cards, function(card){ return _.moment(card.LastMove).isAfter(ago); });
_.each(oldCards, function(card){ console.log(card.Title); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment