Quickly add a task to Asana using Alfred
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
asana.php Increase workflow version Jun 26, 2017
icon.png Initial commit from v2.1 Dec 18, 2016
info.plist
timezones.json
timezones.php
workflows.php

README.md

Please note that QuickTask requires the Alfred Power Pack, which is highly recommended regardless of whether you use QuickTask.

Setup

To get started with QuickTask, the only two things you have to do is store your Asana info using the akey keyword, then set a task target with either the aspace or aproject keywords.

To store your Asana settings, launch Alfred and enter akey followed by a space and your API key. (Directions for finding your API key.) Next, use aspace or aproject, and Alfred will show you a list of the available workspaces or projects you can choose as a task target. With projects, the list will also show what workspace the project belongs to. For both workspaces and projects, you can filter the list by typing part of the name of what you're looking for.

[screenshots]

Note: If you add workspaces or projects to your Asana account, you will need to run aget to refresh your stored data. (Unlike previous versions of QuickTask, you do not need to run aget during setup.)

Note: Use the keyword atarget to remind yourself of the current task target.

Creating a Task

Use the asana keyword, or setup a keyboard shortcut to quickly add a task to the target workspace or project.

To create a task, just enter the asana keyword or your saved keyboard shortcut, plus the name of the new task. Also, with the latest version of QuickTask, you can set assignees, due dates, or both when creating tasks.

Note: Setting a "hotkey" for the asana keyword is essential for making the most efficient use of QuickTask. This is done in Alfred's settings panel. (I use ctrl-space, like most desktop task apps.)

Setting Assignees

First, you need to save the nickname and email of any assignees you need. With the aperson keyword, add the desired nickname followed by the person's Asana-related email, separated by an equal sign, e.g. "bob=bob@mail.com" (no spaces).

Now, when adding a task, you can assign it to Bob by adding two colons and Bob's nickname to your task, e.g. "New task::bob".

Setting Due Dates

In order to use the due date functionality in QuickTask, you will need to set your timezone with the azone keyword. Launch Alfred, then simply type azone, then select your region from the list, then select your timezone from the list in the following dialog.

Now, when you create a task, you can add either a numeric date (YYYY-MM-DD format) or simply type a day name after two colons. You can also use abbreviations, or include "next " to choose days in the following week.

Examples:

Cancel that trial subscription::2013-10-05
New task::tomorrow
New task::monday
Take out the trash::wed
New task::next tuesday

Apart from full week day names, the following are allowable due date keywords: today, tomorrow, mon, tues, wed, thur, fri, sat, sun, next monday, next mon, etc.

Note: QuickTask is smart enough to know whether you're entering an assignee or a date. Alfred will show an error if neither are valid for some reason.

Setting Assignees and Due Dates

Yes, you can also set both assignees and due dates when creating a task.
Just use the task::assignee::duedate format.

Examples:

New task::bob::tues
Prep for meeting::mel::2013-09-25

Creating New Projects

You can create a new project with the anew keyword.

Like setting your timezone, creating a new project is a two-step process. First, you will choose which workspace to which you will be adding the project. Then you will enter the project name.

The new project is automatically added to your project list. You do not need to run aget.

[div class="reference" id="reference"]

Reference

Keywords

adefault Enter the email for the default assignee. (Not usually needed)
aget Retrieve Asana workspaces and projects. Only needed if you've added workspaces or projects to your Asana account.
akey Enter your Asana API key to retrieve and save your settings.
anew Add a new project.
apeople Show a list of currently saved assignees.
aperson Save an assignee. Example: linda=linda@mail.com
aproject Set task target as a project. Shows a list of available projects.
asana Save task.
aspace Set task target as a workspace. Shows a list of available workspaces.
atarget Shows current task target.
azone Set your timezone. Required to use due date functionality.

Troubleshooting

Problem: You chose the wrong region while setting your timezone.
Simply choose any timezone to get "unstuck," then start the process over.
Problem: You can't find where in the settings page to enter your API key.
You can't find it there because that's not where you put it! You enter your API key into the standard Alfred dialog as depicted in the screenshot above.

Known Issues

Single quotes must be manually escaped to work in task names.
Due to a limitation in escaping options in Alfred, single quotes don't work right. So if you want to name a task "Bob's your uncle", you have to write "Bob\'s your uncle." Otherwise everything following the single quote would be omitted.