Coder Social home page Coder Social logo

smart_asana's Introduction

Smart Asana

This gem allows you to add tasks to Asana using the Smart Add syntax from Remember the Milk.

I used RTM for four years before switching to Asana, and I missed the seamless task entry. No more!

Installation

Add this line to your application's Gemfile:

gem 'smart_asana'

And then execute:

$ bundle

Or install it yourself as:

$ gem install smart_asana

Usage

To run the asana executable, define the ASANA_API_KEY environmental variable. This will be used to construct a new connection to Asana.

Once the environmental variable is configured, you can add your tasks from the command-line.

$ asana This is a new task #TheWorkspace +1

Specifying Indicators

The parser will use all text preceding the first indicator as your task name, and the task attributes will be set based on the indicators you have specified.

You can assign a task to today, upcoming, or later. All other tasks are dropped into your inbox. For more information about these status types, check out the Tasks documentation.

$ asana This task is for today +1
1 - today
2 - upcoming
3 - later

You can also assign a task to a specific workspace.

$ asana This task is in #MyWorkspace

Since workspace names can contain multiple words, you'll want to use MixedCase indicators. Also, workspace indicators are not case-sensitive.

If you want to assign a due date to a task, you can specify it in a variety of ways.

today - today's date
tomorrow - tomorrow's date
friday - Friday's date (other days of the week work, as well)
$ asana This task is due ^today

It is also possible to enter an arbitrary date for a task.

$ asana This task is due on ^2013-01-01

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

smart_asana's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

srir jadebarry

smart_asana's Issues

undefined method `downcase' for nil:NilClass (NoMethodError)

First of all, smart_asana is awesome, thanks a ton!

Just to let you know, I ran into the following issue:

% asana 'test'
/usr/lib64/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support/json/decoding.rb:12:in `decode': [DEPRECATION] MultiJson.decode is deprecated and will be removed in the next major version. Use MultiJson.load instead.
[WARNING] MultiJson is using the default adapter (ok_json). We recommend loading a different JSON library to improve performance.
/usr/lib64/ruby/gems/1.8/gems/smart_asana-0.0.1/bin/asana:14: undefined method `downcase' for nil:NilClass (NoMethodError)
        from /usr/lib64/ruby/gems/1.8/gems/smart_asana-0.0.1/bin/asana:13:in `select'
        from /usr/lib64/ruby/gems/1.8/gems/smart_asana-0.0.1/bin/asana:13
        from /usr/bin/asana:19:in `load'
        from /usr/bin/asana:19

I removed .downcase to make it work (the task gets into my main workspace).

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.