From 2e6b3729067b3a3d37949f1ac9a878b650291ca1 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 18 Dec 2020 16:45:07 +0100 Subject: [PATCH] `parent_status_by_task_status` is list of dictionaries --- .../defaults/project_settings/ftrack.json | 21 +++++++++++-------- .../schema_project_ftrack.json | 21 ++++++++++++++++--- 2 files changed, 30 insertions(+), 12 deletions(-) diff --git a/pype/settings/defaults/project_settings/ftrack.json b/pype/settings/defaults/project_settings/ftrack.json index b03328115b..7bc935e3c5 100644 --- a/pype/settings/defaults/project_settings/ftrack.json +++ b/pype/settings/defaults/project_settings/ftrack.json @@ -55,14 +55,17 @@ "Omitted" ] }, - "parent_status_by_task_status": { - "In Progress": [ - "in progress", - "change requested", - "retake", - "pending review" - ] - } + "parent_status_by_task_status": [ + { + "new_status": "In Progress", + "task_statuses": [ + "in progress", + "change requested", + "retake", + "pending review" + ] + } + ] }, "status_task_to_version": { "enabled": true, @@ -194,4 +197,4 @@ "ftrack_custom_attributes": {} } } -} \ No newline at end of file +} diff --git a/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json index a0cb6c9255..c94ed40511 100644 --- a/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json +++ b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json @@ -177,12 +177,27 @@ } }, { + "type": "list", "key": "parent_status_by_task_status", - "type": "dict-modifiable", "label": "Change parent status if a single task matches", "object_type": { - "type": "list", - "object_type": "text" + "type": "dict", + "children": [ + { + "type": "text", + "label": "New parent status", + "key": "new_status" + }, + { + "type": "separator" + }, + { + "type": "list", + "label": "Task status", + "key": "task_statuses", + "object_type": "text" + } + ] } } ]