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?
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.
The Python API can’t directly query an entity’s Default Task Template. You must manually assign the template ID or rely on automatic defaults set when creating entities in the UI.
Hey, thanks for the reply! That was the conclusion I was coming to too - good to confirm that I’m not missing something though.
My workaround for this has been to create a new field at the project level that I set to match the task template for the project - certainly not ideal, but felt better than putting it anywhere else.