I have a task item and i want to get all its subtasks including its subsubtasks recursively, preferably via CSOM, but I appreciate any hint to how this could be done. I tried a caml query that queries the ParentID of the task. However the following query returns only the direct nested subtasks (1 level).
<Query>
<Where>
<Eq>
<FieldRef Name="ParentID" />
<Value Type="Counter">1</Value>
</Eq>
</Where>
</Query>
Adding <View Scope="RecursiveAll">
to the query didn't change anything either.