Creating an Asana task with custom_field values
Sep 7, 2018 · 1 min read
I struggled with this for a while and searching for an answer proved fruitless even though several people seemed to have a similar problem. I figured it through trial and error but it seems obvious now.
Anyway, to assist people searching in the future, I hope they find this solution.
When creating task with the tasks API POST a JSON body in the following format:
let body = JSON.stringify({
data: {
projects: projectId,
name: name,
notes: notes,
custom_fields: {
customFieldId: customFieldValue
}
}
});The above example is JavaScript, but hopefully that will help you in whatever language you’re using.
