none
Urgent: How to edit a specific task in a project using psi in ps2010 RRS feed

  • Question

  • How to edit a specific task in a project using psi in ps2010.

    I tried the following but not finding any better method for finding the specific task and then edit it.

    projDataSet = projectClient.ReadProject(projectID,

    DataStoreEnum

    .WorkingStore);

     

    foreach(backendProject.ProjectDataSet.ProjectRow prjRow in

    projDataSet.Project)

    {

     

    if

    (prjRow.PROJ_UID == projectID)

    {

    ????????

    }}}

    Can anyone pls suggest me.Its urgent.

    

    Monday, February 6, 2012 12:14 PM

Answers

  • Hi swati arora,

    have you tried to use the ReadProjectEntities method yet ? You could use the entityType parameter to filter for Tasks, so you don´t need to read all project data.

    Additionally have a look at the ChangeXml parameter for the StatusingSvc.UpdateStatus method, there´re some supported task fields you can update with this method -> http://msdn.microsoft.com/en-us/library/bb428845.aspx 

     

    Greets
    Maik

     

    • Marked as answer by swati arora Tuesday, February 7, 2012 7:27 AM
    Monday, February 6, 2012 1:17 PM

All replies

  • Hi swati arora,

    have you tried to use the ReadProjectEntities method yet ? You could use the entityType parameter to filter for Tasks, so you don´t need to read all project data.

    Additionally have a look at the ChangeXml parameter for the StatusingSvc.UpdateStatus method, there´re some supported task fields you can update with this method -> http://msdn.microsoft.com/en-us/library/bb428845.aspx 

     

    Greets
    Maik

     

    • Marked as answer by swati arora Tuesday, February 7, 2012 7:27 AM
    Monday, February 6, 2012 1:17 PM
  • Hello Maik,

    It worked with ReadProjectEntities.

    Thanks for your timely help.

    Tuesday, February 7, 2012 7:26 AM