Every 15 minutes
Log completed Asana tasks to Google Sheets
Tasks completed in chosen Asana projects are added to a Done log with who finished them, when and in which project.
- Runs
- Every 15 minutes
- Apps
- Asana, Google Sheets
- AI
- Not needed
- Access
- Asana personal access token; Google Sheets read+write
Send this to your assistant
Create a ClickRuntime automation: every 15 minutes, add newly completed tasks from my Client A and Client B Asana projects to the Done log tab of my sheet with the completion date, task, assignee and project.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Asana shows what is still open, but answering "what did we finish last week for this client?" means scrolling through completed tasks project by project.
This automation keeps a running Done log in Google Sheets: every 15 minutes, newly completed tasks from the projects you list are added with the time, the person and the project.
Agencies, freelancers and team leads use the log for weekly updates, invoices and one-to-ones.
What you get out of it
Weekly updates write themselves
Filter the log by project and date to list what was delivered.
Evidence for invoices
Completed work per client is recorded with dates, ready to attach to a bill.
Fair view of workload
Count finished tasks per person over a month without opening Asana reports.
History that stays put
Archived projects in Asana still have their completed work in the sheet.
Each task logged once
The last check time is stored, so nothing is duplicated.
How it works
What happens, step by step
Every 15 minutes ClickRuntime asks Asana for tasks completed since the last check in each project you list.
Each newly completed task becomes a row with completion time, task name, assignee, project and link.
The check time is saved so each task is logged once.
Before it runs live
- Connect Asana
- Connect your Google Sheets account and pick the spreadsheets it may use
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Asana and Google Sheets steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, credentials, http, state, report_fetched
PROJECTS = {"1200000000000001": "Client A", "1200000000000002": "Client B"}
SHEET_ID = "your-spreadsheet-id"
def asana(path, **params):
r = http.get(f"https://app.asana.com/api/1.0/{path}", params=params,
headers={"Authorization": f"Bearer {credentials.secret('ASANA_TOKEN')}"})
r.raise_for_status()
return r.json()
@on_trigger
def run(event):
since = state.get("since") or (datetime.now(timezone.utc) - timedelta(hours=1)).isoformat()
now = datetime.now(timezone.utc).isoformat()
rows = []
for gid, name in PROJECTS.items():
tasks = asana(f"projects/{gid}/tasks", completed_since=since, limit=100,
opt_fields="name,completed,completed_at,assignee.name,permalink_url")["data"]
for t in tasks:
if t["completed"] and t.get("completed_at") and t["completed_at"] > since:
rows.append([t["completed_at"][:16].replace("T", " "), t["name"],
(t.get("assignee") or {}).get("name", ""), name, t["permalink_url"]])
report_fetched(len(rows))
if rows:
build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False) \
.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Done!A:E", valueInputOption="USER_ENTERED",
body={"values": sorted(rows)}).execute()
state.set("since", now)
return {"logged": len(rows)}FAQ
Common questions
Why does Asana return incomplete tasks too?
What happens if someone reopens a task?
Can I use it for client billing?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Create Asana onboarding projects from new sheet rows
Add a client to your sheet and an Asana project is created from your onboarding template, with the link written back to the row.
See how it worksLog new SEO issues to a sheet and create Asana tasks to fix them
Every Monday new broken backlinks are added to your Google Sheet and each one gets an Asana task, so nothing found is forgotten.
See how it worksExport Asana project tasks to Google Sheets
Every weekday morning a tab is rewritten with all tasks in an Asana project: section, assignee, due date, completed and link.
See how it worksKeep exploring
Set up “Log completed Asana tasks to Google Sheets” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.