Created
November 30, 2021 15:54
-
-
Save schweigert/be717acf7b2891727bec2fed2c01eb6b to your computer and use it in GitHub Desktop.
Pegar todas as tasks do backlog no jira
This file contains hidden or 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 getAllElementsWithAttribute(attribute) | |
{ | |
var matchingElements = []; | |
var allElements = document.getElementsByTagName('*'); | |
document.getElementsByTagName('*').forEach((el) => { | |
if(el.getAttribute(attribute) !== null) { matchingElements.push(el) } | |
}) | |
return matchingElements; | |
} | |
getAllElementsWithAttribute('data-issue-id').forEach((el) => console.log(el.getElementsByClassName('ghx-inner')[0].textContent)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment