Kit MarketplaceSign in with GitHub

Archive old done tasks

Reviewed

Every day, moves rows Done for 30 days or more to Status Archived.

by Kit · ships with KitVersion 1.0.0Runs inside Kit, in a sandbox
Add to Kit
  1. In Kit, open Plugins, then Add another way › A code plugin’s link or file.
  2. Paste this link. Kit shows what it may do before anything changes.

Keeps your task list short by archiving what's long finished.

What it does

Once a day, every task that has been Done for 30 days or more moves to Archived. Your views stay about what's happening now.

How to use it

Add it to Tasks, which needs:

  • a Status with Done and Archived
  • a date called Done on, set when a task is finished (an automation can set it: When Status becomes Done, set Done on to today).

Good to know

  • It runs once a day. Turn it off on its page to pause it.
  • Archived tasks aren't deleted: filter them back in whenever you want them.
Its code11 lines, exactly as Kit runs it · fingerprint cf310c77f706
// Needs a Status with Done and Archived, and a date property called Done on.
plugin.every = () => {
  const month = Date.now() - 30 * 24 * 3600 * 1000;
  for (const db of ['Tasks']) {
    for (const row of kit.rows(db)) {
      const done = row.values['Done on'] && Date.parse(row.values['Done on'].start);
      if (row.values.Status === 'Done' && done && done < month) kit.update(row.id, { Status: 'Archived' });
    }
  }
};

Versions

  1. 1.0.0Listed nowNov 19, 2026