none
Change Sharepoint task parent id via REST RRS feed

  • Question

  • Hello.

    I'm trying to move a subtask from one parent to another. I could change the tasks name with such a PATCH query:

    URL:
    http://testserver/sites/PWA/_api/ProjectServer/Projects('4b951130-e0b9-e911-910f-001dd8b71c8d')/Draft/Tasks('af5369a8-e0b9-e911-910f-001dd8b71c8d')

    request body:
    {
    "odata.metadata": "http://pmsppstest1/sites/PWA/_api/$metadata#SP.ApiData.DraftProjects/@Element",
    "odata.type": "PS.DraftTask",
    "Name":"NEW_NAME"
    }
    It worked, but when I do something like this:

    {
    "odata.metadata": "http://pmsppstest1/sites/PWA/_api/$metadata#SP.ApiData.DraftProjects/@Element",
    "odata.type": "PS.DraftTask",
    "ParentId":"5b5369a8-e0b9-e911-910f-001dd8b71c8d"
    },
    nothing changes, but when creating a subtask everything worked fine with this "ParentId" parameter.

    Could anyone help me to find what is wrong with my query, please?

    Wednesday, August 28, 2019 2:01 PM