Headscratch

← Help center

Importing tasks into Headscratch

Headscratch’s import feature is designed to import backups that Headscratch has exported. However you can import other files too as long as they follow the correct JSON format.

To import, open Settings and tap Import, then pick your file. When it finishes, Headscratch tells you how many tasks it imported.

The file format

Import files are JSON. The simplest file is a list of tasks, where each task only needs its text:

[
  { "content": "Buy milk" },
  { "content": "Call the dentist" },
  { "content": "Renew passport" }
]

Save that as a .json file and import it.

Anything you leave out gets the same value it would get if you typed the task into Headscratch yourself. For example, each task gets your default expiry.

All fields

Here is a list of all the supported fields:

FieldWhat it is
contentThe task’s text. Required. For example, "Buy milk".
categoryThe folder to put it in. For example, "Shopping".
priority"High" or "Low". "High" tasks are starred.
status"Open", "Started", "Completed" or "Trashed".
deadlineWhen the task expires. For example, "2026-11-01T09:00:00Z".
startsWhen the task is started. For example, "2026-10-28T09:00:00Z". This should be in the future if the task is snoozed.
createdAtWhen the task was created. For example, "2026-10-01T12:00:00Z".
completedAtWhen the task was completed. For example, "2026-10-20T18:30:00Z".
repeatRuleHow often the task repeats, as an iCalendar RRULE. For example, "FREQ=WEEKLY;INTERVAL=1".
repeatFromWhether the next repeat is counted from the task’s due date ("due_date") or from when you completed it ("completion").

Here’s a fuller example:

[
  {
    "content": "Water the plants",
    "category": "Home",
    "repeatRule": "FREQ=WEEKLY;INTERVAL=1",
    "repeatFrom": "completion"
  },
  {
    "content": "Submit expenses",
    "category": "Work",
    "priority": "High",
    "deadline": "2026-11-01T17:00:00+00:00"
  },
  {
    "content": "Book flights",
    "status": "Completed",
    "completedAt": "2026-10-15T10:00:00Z"
  }
]

Good to know

Restoring a Headscratch backup

A file exported from Headscratch (Settings → Export) looks like this:

{
  "exportedAt": "2026-10-21T12:00:00Z",
  "userSettings": { … },
  "tasks": [ … ]
}

Importing a backup restores both your tasks and your settings. If you only want the tasks, delete the userSettings section before you import. Your current settings are left alone.

If the import doesn’t work

If you see “Couldn’t import that file”, nothing has been changed. Check for these common problems:

If some tasks are missing after an import, check that each one has a non-empty content.