Skip to content

Instantly share code, notes, and snippets.

@lean0708
Last active February 20, 2018 19:14
Show Gist options
  • Save lean0708/d521dbec7bf0dbc7511c0b9b1a65a5fc to your computer and use it in GitHub Desktop.
Save lean0708/d521dbec7bf0dbc7511c0b9b1a65a5fc to your computer and use it in GitHub Desktop.
Sumar puntos de una lista de columnas en Waffle
function puntos(columns){
var suma=0;
for (var i in columns) {
points = parseInt($("[tooltip='"+columns[i]+"'").parent().find(".column-card-size-total").html());
if(!isNaN(points)){
suma+=points
}
}
return suma;
}
//ejemplos:
//pendientes desarrollo: puntos(['Ready', 'Blocked', 'In Progress', 'Peer review'])
//pendientes equipo: puntos(['Ready', 'Blocked', 'In Progress', 'Peer review', 'Done', 'QA', 'to check by PO'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment