Coder Social home page Coder Social logo

Task detail about asana HOT 3 CLOSED

rbright avatar rbright commented on May 7, 2024
Task detail

from asana.

Comments (3)

rbright avatar rbright commented on May 7, 2024

@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.

willjohnson avatar willjohnson commented on May 7, 2024

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.

gregglind avatar gregglind commented on May 7, 2024

in particular: http://developer.asana.com/documentation/#tasks

from asana.

Related Issues (17)

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.