filter projects by is_closed

stable
Juanfran 2015-06-03 15:18:56 +02:00
parent ec0727fc95
commit c349614651
1 changed files with 6 additions and 1 deletions

View File

@ -84,7 +84,12 @@ class HomeService extends taiga.Service
assigned_to: userId
}
assignedUserStoriesPromise = @rs.userstories.listInAllProjects(params).then (userstories) ->
params_us = {
is_closed: false
assigned_to: userId
}
assignedUserStoriesPromise = @rs.userstories.listInAllProjects(params_us).then (userstories) ->
assignedTo = assignedTo.set("userStories", userstories)
assignedTasksPromise = @rs.tasks.listInAllProjects(params).then (tasks) ->