Node.js tasks in project with custom fields returns [Object]

Hi all,

I am trying to get the custom fields for the tasks in a project using node-asana.

I currently have this code:

const asana = require('asana');
const client = asana.Client.create({"defaultHeaders": {"asana-enable":     "string_ids,new_sections"}}).useAccessToken('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

    opt_fields: 'name,custom_fields'

It returns the tasks, but under custom_fields, there is just a series of [Object]'s.
I’m sure I’m missing something, but I’m not quite sure what. I’ve been through the node-asana documentation but can’t find it.

Thanks in advance!

After some testing, I’ve found the problem.

The custom fields were being returned, they were just collapsed into [Object] for space efficiency in the console.

Just needed to specify the exact array to see.

1 Like