Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.tasks.findAll deprecation #272

Open
dwelch2344 opened this issue Nov 3, 2022 · 1 comment
Open

client.tasks.findAll deprecation #272

dwelch2344 opened this issue Nov 3, 2022 · 1 comment

Comments

@dwelch2344
Copy link

Following along with the example on the README and noticed I'm getting a deprecation warning.

  const workspaces = await client.workspaces.findAll()
  const ws = workspaces.data.find(el => el.name === 'Example Team')

  const me = await client.users.me()

  const tasks = await client.tasks.findAll({
    assignee: parseInt(me.gid),
    workspace: ws.gid,
    opt_fields: 'id,name,assignee_status,completed'
  })
  console.log(tasks)

Produces the warning:

    This request is affected by the "new_user_task_lists" deprecation. Please visit this url for more info: https://forum.asana.com/t/update-on-our-planned-api-changes-to-user-task-lists-a-k-a-my-tasks/103828
  Adding "new_user_task_lists" to your "Asana-Enable" or "Asana-Disable" header will opt in/out to this deprecation and suppress this warning.

Looks like its been a few years since the change was announced, but I'd imagine the library should have a way to adapt (or comment about ignoring/disabling warning)

@dwelch2344 dwelch2344 changed the title client.tasks.findAll is deprecated client.tasks.findAll is deprecation Nov 3, 2022
@dwelch2344 dwelch2344 changed the title client.tasks.findAll is deprecation client.tasks.findAll deprecation Nov 3, 2022
@HermanBide
Copy link

has this issue been solved? if no, can i contribute to try and fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants