I changed it to true and I still got only the last activity related to the task, when using the same API but with specifying a case Id as a filter the API works properly.

this is a snapshot of the API properties, these all are automatically generated when converting workflow builder. I only added filter No. 7 "Case Id" for checking the behavior in case of specific Case Id and it is working fine.