Adding task to board section using Python API

tasks
sections

#1

Hello Community!

I’m trying to add a task to a section within a project that is structured as a board. I’m able to locate the project and create a task, but it will not add the task to a specific section within the project board.

new_task = client.tasks.create_in_workspace(WORKSPACE_ID_NUMBER,{"name":"API_TEST", "notes":"This is a test created via API to begin auto transferring data", "projects":PROJECT_ID_NUMBER, "section":SECTION_ID_NUMBER})

This completes and posts the task onto the project board, but puts it into the first section instead
of the section I define. Any thoughts would be helpful!


#2

Hey,

You need to define memberships of the task.

Check this


#3

Thank you, the example was really helpful and defining memberships solved the problem!