I’m writing a program that will run every 5 minutes, with the idea that it will check if any new tasks have been completed in that time frame, look into the details of that task, then execute further actions if certain conditions in the task notes are true. From my understanding, I must read the events log of each individual project to see any activity with the tasks in that project. I thought this wouldn’t be a problem, I could just loop through all the projects and read their events, not the quickest method, but manageable… that is until I realized this meant storing individual sync tokens for every project, and that poses an issue.
Originally I wanted to set this up as a webhook to listen for task completion across the workspace, but in reading about establishing webhooks in Asana I found that since I’m writing my code in Google Apps Script I can’t complete the handshake part of the webhook creation. In reading forums I came to the conclusion that events are just as effective.
If events are not the best way to do this, what should my alternative be? If events are the best route to take, is there a more streamlined way to check for recently completed tasks across all 75-100 projects in my workspace? Or do I really just need to store all of those sync tokens somewhere, creating and removing them as projects are added and deleted to/from our workspace?
Thanks in advance for any and all help!