none
Inserting Subtask in Project in ProjectServer 2013 RRS feed

  • Question

  • I am having 3 tasks in my project : Task1,Task2,Task3. Now I want to insert subtask in Task2 i.e., Task2.1.

    For this i set the values of TASK_OUTLINE_LEVEL as 2 then TASK_OUTLINE_NUM as 2.1 and also given the Task ID of Task2 as parent ID but still the task is getting inserted in Task3 and its parent ID gets changed to Task ID of Task3 and TASK_OUTLINE_NUM is getting changed to 3.1.

    Why i m getting this behaviour? Am I doing anything wrong ?

    Also in project server schema for Task dataset tells that TASK_OUTLINE_NUM,TASK_PARENT_UID are read-only so how to insert hierarchical data for task in project ? 

    Thank you in advance.

    Ajinkya

    • Edited by Ajinkya19 Monday, June 1, 2015 12:14 PM
    Monday, June 1, 2015 12:04 PM

All replies

  • Hello,

    you need to do this:

    newTask.AddAfterTaskUID = taskPred;

    Cheers

    Tuesday, June 2, 2015 7:46 AM
  • I am doing this operation through SOAP UI. So can you tell me how i can do this in SOAP UI request. And what is that "taskPred" is is previous task ID or UID.
    Tuesday, June 2, 2015 10:06 AM
  • I am having 3 tasks in my project : Task1,Task2,Task3. Now I want to insert subtask in Task2 i.e., Task2.1.

    For this i set the values of TASK_OUTLINE_LEVEL as 2 then TASK_OUTLINE_NUM as 2.1 and also given the Task ID of Task2 as parent ID but still the task is getting inserted in Task3 and its parent ID gets changed to Task ID of Task3 and TASK_OUTLINE_NUM is getting changed to 3.1.

    Why i m getting this behaviour? Am I doing anything wrong ?

    Also in project server schema for Task dataset tells that TASK_OUTLINE_NUM,TASK_PARENT_UID are read-only so how to insert hierarchical data for task in project ? 

    Thank you in advance.

    Ajinkya

    Tuesday, June 2, 2015 10:08 AM
  • Hi Guillaume,

    You marked this as Duplicated. So can you please tell me is there any answer availble for this already ?

    And if so please provide its link.

    Ajinkya

    Wednesday, June 3, 2015 11:00 AM
  • Hi, taskPred is the TASK_UID or TaskUid of the Parent Task.

    Please mark this reply as an answer if this was valuable for you.


    If you think this was valuable please mark my reply as a valid answer. Thanks. Kind Regards, João Frederico Neto --

    Monday, November 23, 2015 4:49 PM