ScotterC / asana-api-scripts

Scripts for common tasks w/ the asana API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asana-api-scripts

Scripts that Setup:

  1. Get a personal access token
  2. Set an environment variable: export ASANA_ACCESS_TOKEN='<accesstoken>'

1on1 Add Task

Define a task title & body, create copies of that task in multiple 1 on 1 projects.

Options:

  • prompt user for task title & description
  • add task to all projects, to all projects for a given team, or prompt the user to add to each project
  • assign to me, to other member of 1:1 project, or to no one

Usage: Create a file called oneononeprojects.py that contains an array of objects in this format:

projects = [
     { 'name': 'KateTest',         #user-friendly name
       'id': '<projectId>',        # string, project id
       'userid': '<userEmail>',    # string, email address of the other user who should be assigned tasks in this project
       'team': 'self'},            # team name. matches list of teams defined in oneonone.py
]

References

Quick Start: https://asana.com/developers/documentation/getting-started/quick-start

python library: https://github.com/Asana/python-asana/

Documentation: https://asana.com/developers/api-reference/tasks#create

New website:

About

Scripts for common tasks w/ the asana API


Languages

Language:Python 100.0%