Git Product home page Git Product logo

asana-api-meta's People

Contributors

agnoster avatar alexdavies74 avatar ciwang avatar dependabot[bot] avatar epelz avatar ferhatelmas avatar jjschnei avatar joetrollo avatar keenanpayne avatar keiththomps avatar leei avatar lucas-gluchowski avatar marcogallotta avatar markchua avatar mr0grog avatar praecipula avatar rossgrambo-zz avatar seanwentzel avatar slobak avatar theaeolianmachine avatar tlrobinson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asana-api-meta's Issues

client.tasks.find_by_project: null membership

When fetching tasks of a given project, the memberships somehow looks erroneous :

If, the section a task belongs to has been completed (yes : a competed section), then task['memberships'][x]['section']['name'] is null instead of being the name of the section.

Asana::Resources::Section::find_by_project does not return a collection

I am using the Ruby version of the client.

I am assuming that the "sections" resources should be similar to tasks. With that said, ::find_by_project should return a collection. Instead, I get this error:

client.sections.find_by_project(project: PROJECT_ID)
# TypeError: {"id"=>000, "gid"=>"000", "name"=>"THE NAME"} is not a symbol nor a string
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resource_includes/resource.rb:20:in `respond_to?'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resource_includes/resource.rb:20:in `block in initialize'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resource_includes/resource.rb:19:in `each'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resource_includes/resource.rb:19:in `initialize'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resources/section.rb:45:in `new'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/resources/section.rb:45:in `find_by_project'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/client.rb:63:in `public_send'
# 	/home/vagrant/.rbenv/versions/2.3.6/lib/ruby/gems/2.3.0/gems/asana-0.8.0/lib/asana/client.rb:63:in `method_missing'
# 	smorg-console:64:in `<main>'

I guess adding collection: true in line 89 of /src/resources/section.yaml should do the trick. However, I am new at using the api myself, so my guess might be wrong.

Thank you πŸ™

Filter tasks by external:data custom fields

It is great that asana api provides a way to save custom data.

Currently the external:data field allows storage of string characters.
It would be great if json objects can be stored so that when I update a task with the following external data

          external: {
            "id": 1234567899,
            "data": "{ 'time_estimate': 3600, 'time_spent': 1482 }"
          }

I can then filter tasks that match for example the custom field time_estimate

client.tasks.findByExternalField({'time_estimate': 3600})
//or
client.tasks.findBy({'external:time_estimate': 3600})

returning a list of tasks

Test

Making sure this sync works

Filter task by team

Hi,

We can through the API list tasks by assignee but can we retrieve task by team ?

Regards,

PS : It could be a list of assignee

Getting an error when I run gulp build

I had forked this repo a while back to create an Asana R client. At that point, everything was working well. Recently, I updated my fork to make sure I have the latest version of the API. However, if I run npm install followed by gulp build now, I run into the following error.

On googling the error, it seems to be the case that Gulp 3 is not longer supported, and I believe this repo uses Gulp 3. Any pointers on how I can get my build working.

I would like to contribute the Asana R client once I clean this up.

fs.js:34
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:34:5
    at req_ (/Users/ramnath/Documents/Repositories/ramnathv/asana-api-meta/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/Users/ramnath/Documents/Repositories/ramnathv/asana-api-meta/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/Users/ramnath/Documents/Repositories/ramnathv/asana-api-meta/node_modules/fs-extra/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1139:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1159:10)
    at Module.load (internal/modules/cjs/loader.js:988:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1028:19)
    at require (internal/modules/cjs/helpers.js:72:18)

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.