Last active
February 20, 2018 19:14
-
-
Save lean0708/d521dbec7bf0dbc7511c0b9b1a65a5fc to your computer and use it in GitHub Desktop.
Sumar puntos de una lista de columnas en Waffle
This file contains 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
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