Created
          January 11, 2020 10:50 
        
      - 
      
- 
        Save jpetitcolas/e471d73196627f037d54d343effd5ebe to your computer and use it in GitHub Desktop. 
    Marking all tickets as completed on an Asana board column
  
        
  
    
      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
    
  
  
    
  | 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