Creating an Asana task with custom_field values

Chris Brind
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.

Chris Brind

Written by

Technology and Tabletop Gaming

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade