java-asana icon indicating copy to clipboard operation
java-asana copied to clipboard

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

Open RonaldFindling opened this issue 4 years ago • 2 comments

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.

RonaldFindling avatar Jan 11 '21 14:01 RonaldFindling

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

WinnetouL avatar Mar 06 '22 19:03 WinnetouL

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

RonaldFindling avatar Jun 23 '22 07:06 RonaldFindling