Add team to task list serializer and service [SCI-10266]

This commit is contained in:
wandji20 2024-02-22 13:38:24 +01:00
parent 968b34d74c
commit 703259bb1f
2 changed files with 6 additions and 1 deletions

View file

@ -23,6 +23,7 @@ module Lists
due_date_formatted
permissions
default_public_user_role_id
team
)
def attributes(_options = {})
@ -148,5 +149,9 @@ module Lists
count_unseen: count_unseen_comments(object, @user)
}
end
def team
object.team.name
end
end
end

View file

@ -9,7 +9,7 @@ module Lists
task_comments: { user: :teams },
user_assignments: :user,
designated_users: {},
experiment: :project
experiment: { project: :team }
}
private