Comments (3)
@willjohnson If you want to see more details about an object and its composition, you can call inspect
on it.
In the case of a task:
irb(main):003:0> Asana::Task.find(6643704403340).inspect
=> "#<Asana::Task:0x007fdb8b92cfe8 @attributes={\"id\"=>6643704403340, \"created_at\"=>\"2013-07-21T17:51:41.909Z\", \"modified_at\"=>\"2013-07-21T17:51:52.516Z\", \"name\"=>\"Example Task\", \"notes\"=>\"\", \"assignee\"=>#<Asana::Task::Assignee:0x007fdb8b932ba0 @attributes={\"id\"=>205285108516, \"name\"=>\"Ryan Bright\"}, @prefix_options={}, @persisted=false>, \"completed\"=>false, \"assignee_status\"=>\"today\", \"completed_at\"=>nil, \"due_on\"=>nil, \"projects\"=>[], \"tags\"=>[], \"workspace\"=>#<Asana::Workspace:0x007fdb8b931e08 @attributes={\"id\"=>1903807605698, \"name\"=>\"Harvest\"}, @prefix_options={}, @persisted=false>, \"parent\"=>nil, \"followers\"=>[#<Asana::Task::Follower:0x007fdb8b9373f8 @attributes={\"id\"=>205285108516, \"name\"=>\"Ryan Bright\"}, @prefix_options={}, @persisted=false>]}, @prefix_options={}, @persisted=true>"
From this, you can learn various characteristics of a task using the following methods:
- name
- notes
- assignee
- completed
- due_on
- projects
- tags
- workspace
- followers
Note: Some of these attributes are unavailable when fetching the task indirectly (e.g. fetching all tasks from a given workspace). To see all of them, you must get the task directly by using Asana::Task.find(some_id)
. This is a result of the responses given by the Asana API.
from asana.
Thank you! I had a couple of issues but one was I didn't see Asana::Task.find in the documentation.
Thanks for the response and for providing this library.
from asana.
in particular: http://developer.asana.com/documentation/#tasks
from asana.
Related Issues (17)
- Sample App? HOT 5
- Include archived tasks
- Filter completed tasks HOT 1
- Removed users still show up under workspaces
- Can you add support for Teams? HOT 2
- Replace ActiveResource with Faraday
- Support per-instance authentication using Authorization: Bearer $TOKEN method
- Can Add Tag to task?
- Task.tags gets all tags rather than just the tags associated with that particular task HOT 1
- Get only tasks that are not completed?
- Tasks projects list has unexpected behaviour HOT 1
- workspace tasks *can* get details.
- Getting User by email HOT 1
- Determining if Task is completed HOT 2
- License missing from gemspec HOT 2
- Unable to define created_by user on stories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asana.