can someone provide an example of how to change a task status manager using CSOM? i know how to do it using PSI, but can't figure out how to do it with SCOM
this is what i got so far:
foreach (PublishedProject pub in projContext.Projects){ if (!pub.IsCheckedOut)
{
DraftProject draftProj = pub.CheckOut().IncludeCustomFields;
projContext.Load(draftProj);
projContext.Load(draftProj.Tasks);
projContext.Load(draftProj.IncludeCustomFields);
projContext.ExecuteQuery(); foreach (Task t in pub.Tasks)
{
if (t.IsSummary != true)
{
//update status manager
t. ?????????????????
}
}
tatiana