listTasks

Returns a list of tasks that can be filtered by state.