Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#35243 add Tasks tab to layout when working on a Task #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion python/app/shotgun_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])

Expand Down