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

    service.getTask = (projectId, taskId) ->
        return queryOne("tasks", taskId, {project:projectId})

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

    service.search = (projectId, term) ->


            result = {}
            result.models = _.map(data, (attrs) -> $model.make_model(name, attrs, cls))
            result.count = parseInt(currentHeaders["x-pagination-count"], 10)
            result.current = parseInt(currentHeaders["x-pagination-current"] or 1, 10)
            result.paginatedBy = parseInt(currentHeaders["x-paginated-by"], 10)

            defered.resolve(result)

