We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Calculate Completion Estimates For All Projects

YummyAmericano
Tera Expert

Hey there!

I'm looking to set up a scheduled job that calculates completion estimates for all projects. I've written a script for it, but it doesn't seem to be working properly. Surprisingly, the System Log shows no errors. Does anyone have any insights on how I can successfully perform this task using a scheduled job? I would greatly appreciate any advice or suggestions. Thank you so much!

Below is the script I've written:

var projectGR = new GlideRecord('pm_project');
projectGR.query();


while (projectGR.next()) {
    var obj = new ProjectCalculateAJAX().updateEstimateAtCompletionCost(projectGR.sys_id);
}

 

0 REPLIES 0