Philip Posted August 30, 2016 Report Share Posted August 30, 2016 Hi I'm wondering how to create the tasks from a task template, through the API. I can't figure out how to access them. I was following the following doc: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/project.html but it doesn't show how to create from task template. The task template would appear to be a child of the schema if the interface is anything to go by, but there doesn't seem to be anything in the items of the schema object, or a dedicated function. I did see there was a "_task_workflow" is that what I want, I presume not as its marked as private. Also according to the API, http://ftrack-python-api.rtd.ftrack.com/en/stable/api_reference/entity/project_schema.html the "get_types" only require one arg called schema, its not clear whats wanted here. As the object its self is supposed to represent the schema. Looking at your example code though you have passed a string called "Task". How do I know what options I can pass here? thanks Phil Link to comment Share on other sites More sharing options...
Lucas Correia Posted August 30, 2016 Report Share Posted August 30, 2016 Hi, Thank you for reaching out. Task templates are currently not exposed via the API, so it is not possible to query or create them other than from the interface in settings. I don't see a reason to why they aren't exposed, so I'll add a ticket to follow up and add the missing entities and attributes to the schema. Regards, Lucas Link to comment Share on other sites More sharing options...
Philip Posted August 30, 2016 Author Report Share Posted August 30, 2016 OK Thank you Link to comment Share on other sites More sharing options...
PhilS Posted August 30, 2017 Report Share Posted August 30, 2017 Have these templates been made available in the API yet? Or is there an ETA? Link to comment Share on other sites More sharing options...
Eric Hermelin Posted August 30, 2017 Report Share Posted August 30, 2017 Hi Phil, Support for accessing task templates through the API was added in version 3.5.3 ( http://ftrack.rtd.ftrack.com/en/stable/release/release_notes.html#release-3.5.3 ). You can find some examples of the usage in the ftrack python api documentation http://ftrack-python-api.rtd.ftrack.com/en/latest/example/task_template.html cheers Eric Link to comment Share on other sites More sharing options...
PhilS Posted September 1, 2017 Report Share Posted September 1, 2017 Great - Thanks Eric Link to comment Share on other sites More sharing options...
HYP_STGR Posted September 13, 2017 Report Share Posted September 13, 2017 On 30/08/2017 at 11:25 AM, Eric Hermelin said: Hi Phil, Support for accessing task templates through the API was added in version 3.5.3 ( http://ftrack.rtd.ftrack.com/en/stable/release/release_notes.html#release-3.5.3 ). You can find some examples of the usage in the ftrack python api documentation http://ftrack-python-api.rtd.ftrack.com/en/latest/example/task_template.html cheers Eric Hi i just followed the current example but the key ['task_templates'] don't exist inside project['project_schema'].In the site i have access to those task templates but i can't find them via the python api. Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted September 14, 2017 Report Share Posted September 14, 2017 12 hours ago, OttoniBastos said: Hi i just followed the current example but the key ['task_templates'] don't exist inside project['project_schema'].In the site i have access to those task templates but i can't find them via the python api. Which version of ftrack are you currently on? Link to comment Share on other sites More sharing options...
HYP_STGR Posted September 14, 2017 Report Share Posted September 14, 2017 5 hours ago, Mattias Lagergren said: Which version of ftrack are you currently on? The one that comes with the lastest version of ftrack connect.(3.3.11+) Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted September 15, 2017 Report Share Posted September 15, 2017 On 14/09/2017 at 3:10 PM, OttoniBastos said: The one that comes with the lastest version of ftrack connect.(3.3.11+) Thanks but I mean the version of your ftrack service, you can find this under System Settings > About. Cheers Link to comment Share on other sites More sharing options...
HYP_STGR Posted September 15, 2017 Report Share Posted September 15, 2017 1 hour ago, Mattias Lagergren said: Thanks but I mean the version of your ftrack service, you can find this under System Settings > About. Cheers version: 3.3.42.4536 Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted September 18, 2017 Report Share Posted September 18, 2017 I see, so the issue is that the version of ftrack you have does not support task templates through the api: Quote Support for accessing task templates through the API was added in version 3.5.3 ( http://ftrack.rtd.ftrack.com/en/stable/release/release_notes.html#release-3.5.3 ). You can find some examples of the usage in the ftrack python api documentation http://ftrack-python-api.rtd.ftrack.com/en/latest/example/task_template.html If you email support@ftrack.com with your company information we can see if we can get you upgrade before the scheduled window. Make sure to add this forum post as a reference. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.