Last active
February 7, 2016 04:10
-
-
Save paulfalgout/e11a8285b740a4faa46b to your computer and use it in GitHub Desktop.
RoundingWell - Leankit Oldest 2 mo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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