Skip to content

rkaiser0324/export-asana

Repository files navigation

export-asana

Per this forum post, Asana does not offer a means to natively export a project. This PHP CLI script uses the Asana REST API to export to HTML, all the Tasks, Comments, and links to Attachments in a given Project in a Workspace. It also includes any Subtasks in the hierarchy.

This script has been tested with PHP 7.3 and PHP 8.0.

Setup

  1. composer install
  2. Get a Personal Access Token per these instructions.
  3. Create ./config.php as
    <?php
    // Set this to your Personal Access Token
    define('ASANA_ACCESS_TOKEN', 'xxx');

Usage

The script is used as follows:

php export.php --workspace=<workspacename> --project=<projectname> --output=<outputfilename> [--modified_since=YYYY-MM-DD] [--completed_since=YYYY-MM-DD]

Parameters:

  • workspace - name of the Workspace, required
  • project - name of the Project, required
  • output - name of the output file, required
  • modified_since - date in YYYY-MM-DD format, optional
  • completed_since - date in YYYY-MM-DD format, optional

E.g.,

php export.php --workspace="My Workspace" --project="My Project" --modified_since=2022-01-15 --output=output.html

Notes

  • The script skips any Task that has been added to multiple Projects, but this can be easily changed if that restriction is not applicable to your use case.
  • The output HTML uses Bootstrap 5 for minimal styling.

About

Use the Asana API to export Asana tasks and comments to HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages