Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 15 minutes ClickRuntime asks Asana for tasks completed since the last check in each project you list.

  2. Each newly completed task becomes a row with completion time, task name, assignee, project and link.

  3. 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

RunsEvery 15 minutes
Log completed Asana tasks to Google Sheetstoday, 9:00Succeeded
Google Sheets · Work log › Done2026-11-10 14:32 | Send October analytics report | Tom Reyes | Client A | app.asana.com/0/120…

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
log_completed_asana_tasks_to_google_sheets.pyexample
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?
Asana's completed_since filter returns open tasks plus tasks completed after that time. The script keeps only the ones with a completion time after the last check.
What happens if someone reopens a task?
The row stays in the log, because it was completed at that time. If you want reopened tasks removed, ask your assistant to check the last week's rows each night.
Can I use it for client billing?
Many teams do: add a time or estimate custom field and ask your assistant to include it, then sum it per client each month.
What permissions does it need?
Asana personal access token; Google Sheets read+write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.