Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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