Skip to content

Instantly share code, notes, and snippets.

@tonymtz
Forked from bit-dragon/MyTimesheet.js
Created April 19, 2014 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonymtz/b6efd5fd37a643bc17e1 to your computer and use it in GitHub Desktop.
Save tonymtz/b6efd5fd37a643bc17e1 to your computer and use it in GitHub Desktop.
// 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(', '));
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment