ArtUshak / asana2taskwarrior

Script to convert JSON with tasks exported from Asana to Taskwarrior JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asana-to-Taskwarrior task converter

This is script to convert exported tasks from Asana API JSON to Taskwarrior import JSON.

Usage

  1. Export tasks from Asana project using API and get JSON file input.json.
  2. Convert tasks: asana2taskwarrior --input-asana-file input.json --output-taskwarrior-file output.json
  3. Import tasks to Taskwarrior: task import output.json

Options

  • --append-sections-to-project — add section names to output project names, for example, if task is in section Labs of project Functional programming, then output project name will be Functional programming: Labs
  • --children-to-dependencies — mark parent tasks as dependencies of their children
  • --section-priority-mapping-file FILE — JSON file with section-to-priority mapping (see below)

Section-to-priority mapping file

Section-to-priority mapping can be used to determine output task priority from input section name.

Example:

{
    "default_mapping": "L",
    "mapping": {
        "Квартира": "H",
        "Здоровье": "H",
        "Поиск работы": "H",
        "Фитнес": "M",
        "Компьютер": "M",
        "Книги (учебная литература)": "M",
        "Учёба: математика": "M",
        "Учёба: программирование": "M",
        "Книги (художественная литература)": "L",
        "Игры": "L",
        "Кино": "L",
        "Прочее": "M"
    }
}

About

Script to convert JSON with tasks exported from Asana to Taskwarrior JSON

License:Apache License 2.0


Languages

Language:Rust 100.0%