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:
| Field | What it is |
|---|---|
content | The task’s text. Required. For example, "Buy milk". |
category | The folder to put it in. For example, "Shopping". |
priority | "High" or "Low". "High" tasks are starred. |
status | "Open", "Started", "Completed" or "Trashed". |
deadline | When the task expires. For example, "2026-11-01T09:00:00Z". |
starts | When the task is started. For example, "2026-10-28T09:00:00Z". This should be in the future if the task is snoozed. |
createdAt | When the task was created. For example, "2026-10-01T12:00:00Z". |
completedAt | When the task was completed. For example, "2026-10-20T18:30:00Z". |
repeatRule | How often the task repeats, as an iCalendar RRULE. For example, "FREQ=WEEKLY;INTERVAL=1". |
repeatFrom | Whether 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
- Field names are case-sensitive. Write
content, notContentorTitle. Headscratch ignores any field it doesn’t recognise, and a task with nocontentis skipped. - Dates need a time and a time zone. Write them like
2026-11-01T09:00:00Z. TheZat the end means UTC. You can also give an offset such as+01:00. A date without a time, like2026-11-01, isn’t accepted. - Folders are matched by name. If a task names a folder you don’t have yet, Headscratch creates the folder.
- If no expiry is given, a task gets its folder’s default expiry, or your general default if the folder doesn’t have one.
- If a task is marked
"Completed"without acompletedAt, Headscratch records it as completed at the moment you import it.
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:
- The file isn’t valid JSON. Look for a missing comma, a missing quote, or a comma after the last item in a list. A free online JSON validator will point out where the mistake is.
- A date is in the wrong format. One unreadable date, like
"tomorrow"or"01/11/2026", stops the whole import. Use the format shown above. - No task has
content. This usually means the tasks use a different field name, such as"title"or"name". Rename that field tocontent.
If some tasks are missing after an import, check that each one has a non-empty content.