Skip to content

Instantly share code, notes, and snippets.

@mayukojpn
Last active August 29, 2015 14:08
Show Gist options
  • Save mayukojpn/bdd0f7c6351f531b4c50 to your computer and use it in GitHub Desktop.
Save mayukojpn/bdd0f7c6351f531b4c50 to your computer and use it in GitHub Desktop.
Backlogでチケット番号を抜き出す
var p_key = document.getElementsByClassName("p_key"),p_keyList;
for(var i=0;p_key.length>i;i++){
p_keyList+=p_key[i].getElementsByTagName("a")[0].innerText+"\b";
p_keyList+=p_key[i].nextSibling.nextSibling.getElementsByClassName("title-inner")[0].innerText+"\n";
}
console.log(p_keyList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment