# Taks fields come as null + Java SDK

**URL:** <https://forum.asana.com/t/taks-fields-come-as-null-java-sdk/15035>\
**Category:** API & Developers\
**Created:** [29 January 2018 23:40 UTC](https://forum.asana.com/t/taks-fields-come-as-null-java-sdk/15035 "2018-01-29T23:40:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![moranplatform](https://luna1.co/8d76cd.png) [@moranplatform](https://forum.asana.com/u/moranplatform)\
**Post date:** [29 January 2018 23:40 UTC](https://forum.asana.com/t/taks-fields-come-as-null-java-sdk/15035/1 "2018-01-29T23:40:26Z")

</div>

Hi All,

I am trying to get all some task information(created, completed, etc ) of tasks that belong to a Project. I am using the following code and sending the specific fields I need values for, I get all the tasks but I only get the values of task.name and task.id, task.completed, the rest of the fields especially the dates ones come as null even though those tasks do have values in the UI. Am I missing something?

CollectionRequest tasks = client.tasks.findAll().query(“project”, project.id)  
.option(“fields”, Arrays.asList(“createdAt”, “completed”,“tags”,“completedAt”,“dueAt”,“dueOn”,“modifiedAt”));

Thanks

---

<div class="post-metadata">

**Author:** ![moranplatform](https://luna1.co/8d76cd.png) [@moranplatform](https://forum.asana.com/u/moranplatform)\
**Post date:** [31 January 2018 17:32 UTC](https://forum.asana.com/t/taks-fields-come-as-null-java-sdk/15035/2 "2018-01-31T17:32:30Z")

</div>

Actually, the problem was that the fields name were wrong … should have been “due\_on” instead of “dueOn” etc

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 18:58 UTC](https://forum.asana.com/t/taks-fields-come-as-null-java-sdk/15035/3 "2025-05-30T18:58:20Z")

</div>


