From 5ced0779e70e7cc0b4e732ca509bc6760fb8d289 Mon Sep 17 00:00:00 2001 From: KP Date: Thu, 25 Feb 2016 16:24:34 -0600 Subject: [PATCH] #35243 add Tasks tab to layout when working on a Task This allows you to see who else is working on the same Shot or Asset you are. --- python/app/shotgun_formatter.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/app/shotgun_formatter.py b/python/app/shotgun_formatter.py index a13617e5..2a330602 100644 --- a/python/app/shotgun_formatter.py +++ b/python/app/shotgun_formatter.py @@ -412,7 +412,7 @@ def show_tasks_tab(self): """ Should the tasks tab be shown for this """ - if self.entity_type in ["ApiUser", "Group", "Task", "ClientUser"]: + if self.entity_type in ["ApiUser", "Group", "ClientUser"]: return False else: return True @@ -520,6 +520,9 @@ def get_link_filters(self, sg_location): elif self._entity_type in ["PublishedFile", "TankPublishedFile"]: link_filters.append(["task", "is", sg_location.entity_dict]) + elif self._entity_type == "Task": + link_filters.append(['sibling_tasks', 'is', sg_location.entity_dict]) + else: link_filters.append(["entity", "is", sg_location.entity_dict])