I want to fetch tasks from current tasks as well as Historical tasks. Could you please suggest the query to fetch the data from historical tasks?
Here is my current tasks query:
@Autowired private TaskService taskService; @Autowired private HistoryService historyService; List<Task> taskList = taskService.createTaskQuery().or().taskCandidateGroupIn(userRoles).includeAssignedTasks().endOr().list();
What would be the historical tasks query?
I tried to form query for historical, but couldnot find taskCandidateGroupIn method in historicalQuery.
Please suggest how to form historical query?