Skip to content

Instantly share code, notes, and snippets.

@schweigert
Created November 30, 2021 15:54
Show Gist options
  • Save schweigert/be717acf7b2891727bec2fed2c01eb6b to your computer and use it in GitHub Desktop.
Save schweigert/be717acf7b2891727bec2fed2c01eb6b to your computer and use it in GitHub Desktop.
Pegar todas as tasks do backlog no jira
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