-
-
Save bit-dragon/20e8ae2ff26eee952dce to your computer and use it in GitHub Desktop.
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
// Author: Jorge Garcia Miguel | |
// Script to get tp numbers from Target Process. | |
// | |
// INSTRUCTIONS: | |
// | |
// Copy and paste this script on web developer tools console and enjoy!. | |
(function () { | |
var storiesOrBugs = [], | |
tp = null; | |
$('.timeButton').each(function(index, timeElement) { | |
if (timeElement.value > 0) { | |
tp = $(timeElement).parent().parent().find('.moreLink').attr('assignableid'); | |
if (tp) { storiesOrBugs.push(tp); } | |
} | |
}); | |
console.log(_.uniq(storiesOrBugs).join(', ')); | |
}()); | |
// Also you can use a bookmark with the follow script (Thanks Dany) | |
javascript:(function () { var storiesOrBugs = [], tp = null; $('.timeButton').each(function(index, timeElement) { if (timeElement.value > 0) { tp = $(timeElement).parent().parent().find('.moreLink').attr('assignableid'); if (tp) { storiesOrBugs.push(tp); } } }); alert(_.uniq(storiesOrBugs).join(', '));}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank for that suggestion Dany 👍