Skip to content

Instantly share code, notes, and snippets.

@jpetitcolas
Created January 11, 2020 10:50
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 jpetitcolas/e471d73196627f037d54d343effd5ebe to your computer and use it in GitHub Desktop.
Save jpetitcolas/e471d73196627f037d54d343effd5ebe to your computer and use it in GitHub Desktop.
Marking all tickets as completed on an Asana board column
const COLUMN_NAME = "Deployed to Prod"
var column = [...document.querySelectorAll(".BoardBody-column")].filter(
column =>
column.querySelector('.BoardColumnHeader-name') &&
column.querySelector('.BoardColumnHeader-name').textContent == COLUMN_NAME
)[0]
Array.from(column.querySelectorAll(".BoardCard")).map(card => {
card.querySelector(".BoardCard-dropdownButton").click()
document.querySelector(".BoardCardMenuDropdownButton-completeTask").click()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment