     service.getTask = (projectId, taskId) ->
         return queryOne("tasks", taskId, {project:projectId})
 
-    service.getTaskHistorical = (projectId, taskId, filters={}) ->
+    service.getTaskHistorical = (taskId, filters={}) ->
         urlParams = [taskId]
-        parameters = _.extend({}, filters, {project:projectId})
+        parameters = _.extend({}, filters)
         return queryManyPaginated("tasks-historical", parameters, null , null, urlParams)
 
     service.search = (projectId, term) ->

    service.getIssue = (projectId, issueId) ->
        return queryOne("issues", issueId, {project:projectId})

    service.getIssueHistorical = (projectId, issueId, filters={}) ->
        urlParams = [issueId]
        parameters = _.extend({}, filters, {project:projectId})
        return queryManyPaginated("issues-historical", parameters, null , null, urlParams)

    service.getIssuesFiltersData = (projectId) ->

    service.getUserStory = (projectId, userStoryId) ->
        return queryOne("userstories", userStoryId, {project:projectId})

    service.getUserStoryHistorical = (userStoryId, filters={}) ->
        urlParams = [userStoryId]
        parameters = _.extend({}, filters)
        return queryManyPaginated("userstories-historical", parameters, null , null,
                                  urlParams)

