Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artushak/asana2taskwarrior
Script to convert JSON with tasks exported from Asana to Taskwarrior JSON
https://github.com/artushak/asana2taskwarrior
asana asana-api converter taskwarrior
Last synced: 30 days ago
JSON representation
Script to convert JSON with tasks exported from Asana to Taskwarrior JSON
- Host: GitHub
- URL: https://github.com/artushak/asana2taskwarrior
- Owner: ArtUshak
- License: apache-2.0
- Created: 2022-02-13T06:04:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-03T10:08:33.000Z (3 months ago)
- Last Synced: 2024-08-03T11:23:16.642Z (3 months ago)
- Topics: asana, asana-api, converter, taskwarrior
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Asana-to-Taskwarrior task converter
This is script to convert exported tasks from [Asana API](https://developers.asana.com/docs/get-tasks-from-a-project) JSON to [Taskwarrior import](https://github.com/GothenburgBitFactory/taskwarrior/blob/develop/doc/devel/rfcs/task.md) 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:
```json
{
"default_mapping": "L",
"mapping": {
"Квартира": "H",
"Здоровье": "H",
"Поиск работы": "H",
"Фитнес": "M",
"Компьютер": "M",
"Книги (учебная литература)": "M",
"Учёба: математика": "M",
"Учёба: программирование": "M",
"Книги (художественная литература)": "L",
"Игры": "L",
"Кино": "L",
"Прочее": "M"
}
}
```