Giter VIP home page Giter VIP logo

export-asana's Introduction

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.

export-asana's People

Contributors

rkaiser0324 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.