Platform Analytics Solutions include Performance Analytics scripts to perform
calculations on records. These scripts use the time stamp fields from the indicator sources.
If you change the time field stamps in an indicator source, also modify the related
scripts.
Avant de commencer
Important : If you did not update any indicator sources in your Platform Analytics Solutions, skip this task.
Role required: pa_admin, admin
Procédure
-
Navigate to .
-
Click a script to open its details.
For example, the Change.CloseTime.Hours script record contains the
following
script:
var diff=function(x,y){return y.dateNumericValue() - x.dateNumericValue();};
var hours=function(x,y){return diff(x,y)/(60*60*1000);};
hours(current.opened_at, current.closed_at);
-
In the Source section, click the lock icon next to the list of Fields.
The Fields selector opens.
-
Move the desired fields into the fields that are
Selected for the script, and remove fields that are
not appropriate.
For example, if your organization uses the
Created
time stamp field to define a new change, replace
Opened
with
Created.

-
In the Script field, replace the references to disused
fields with references to the fields you just selected.
In this example, references to the
Opened field are
replaced by references to
Created.
var diff=function(x,y){return y.dateNumericValue() - x.dateNumericValue();};
var hours=function(x,y){return diff(x,y)/(60*60*1000);};
hours(current.opened_atcurrent.sys_created_on, current.closed_at);
-
Click Update to save your changes.