Hey, I am using historyService.createHistoricTaskInstanceReport().countByTaskName() to get all the tasks depolyed on the server from my bpmn file. Most of my tasks in bpmn file are user task and others are send Email task and other one is Service task. When I am fetching the count of each task, I am only getting the list of User Tasks not the Service task or email task. Do reply.

Below query will return the results for service tasks, events, usertasks, etc…


You can append more filter criteria to the query.