Flow python API Access to Default Task Template

Hi,

I have a question about accessing an entities default task template via the python API
I’m working on some functionality around creating shots, I know I can create a shot and pass it a task template to use (as described here: Create a Shot with a Task Template — python-api v3.10.0 documentation)

But is there a way to create an entity using its Default Task Template as configured in the Tracking Settings? Can I query the default to add to the create function call?

Thanks!

Hmm,

I havent tested this but does it not respect the addition of the task template via API?

Hey Ricardo, thanks for the quick reply!

The create method respects the ‘task_template’ argument if you include it, and doesn’t create any tasks if you don’t. That makes sense - you don’t necessarily always want to create tasks.

I’m looking for some way to tell it to create the tasks for the project’s configured ‘Default Task Template’. (under Project Actions → Tracking Settings)

Would be great if I was able to query that default task template so I could pass to the create method.

2 Likes