0

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.

2
  • Look for the OutlineParent property of the Task object. Commented 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
    Commented Jan 11, 2020 at 7:49

0

Your Answer

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

Browse other questions tagged or ask your own question.