I'm retrieving Tasks associated with a Project via the OData query.

https://XXX.sharepoint.com/sites/pwa/_api/ProjectServer/Projects?$filter=Id eq guid'xxxx'&$select=Id,Name,StartDate&$expand=Tasks

The above query returns all the Tasks related to the Project. Since Tasks have a hierarchical structure it was my assumption that there would be a Parent field on the Tasks object. How do I identify the relationship between Tasks? Is there a junction object that I need to add in $expand?

Please let me know if more info is needed.

  • Look for the OutlineParent property of the Task object. Jan 10, 2020 at 19:41
  • @RachelHettinger do you mean $expand=Tasks&$select=Tasks/Id,Tasks/OutlineParent if yes, that didn't work
    – d_k
    Jan 11, 2020 at 7:49


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.