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');
client.tasks.findByProject('0000000000000000',{
opt_fields: 'name,custom_fields'
}
).then(function(collection){
console.log(collection.data);
})
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!