Asana / java-asana

Official Java client library for the Asana API v1
MIT License
35 stars 42 forks source link

In `client.projects.getTaskCountsForProject` the optional fields can't be set with the `option()` function #121

Open RonaldFindling opened 3 years ago

RonaldFindling commented 3 years ago

As discussed here the option setting doesn't add the fields to the result.

In short client.projects.getTaskCountsForProject(projectId).option("fields", "num_tasks").execute() should return a json that contains num_tasks -> but it always returns an empty json result.

Documentation etc. are referenced in the linked forum post.

WinnetouL commented 2 years ago

Hey there, I think I am facing the same issue: client.tasks.getTasksForProject("<number>").option("fields", "notes").execute() gives me nothing back for notes

RonaldFindling commented 2 years ago

FYI: It seems the kotlin library has the same issue -> see https://forum.asana.com/t/how-to-use-the-task-count-endpoint-for-projects-in-the-java-client-library/99471/10?u=ronald_findling