What is the configuration behind "Actual duration" field calculation on Project task?

Akshay R
Tera Expert

AkshayR_0-1706880605116.png

 

How the 'Actual duration' field value get populated after changing the Actual end date. What are the configuration behind this eg. BR, Client script, script include or Flow.

Table : tsp1_project_task

 

Please suggest @Anil Lande  

2 REPLIES 2

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @Akshay R ,

 

The "Actual duration" field on a Project Task in ServiceNow is calculated based on the difference between the "Actual start" and "Actual end" dates.

 

There are scenario's when this field gets changed/updated see some below client script that are responsible for that.

1. Most important is when actual end date changes.

 

https://instance_name.service-now.com/sys_script_client.do?sys_id=03c7af68eb732010aaecd13562522822

 

2. Also you can check the "AjaxProjectTaskUtil"  script include.

https://instance_name.service-now.com/sys_script_include.do?sys_id=7478fb318f11010040f82ab2f0f923ba

 

Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.


Regards,

Siddhesh

 

Anil Lande
Kilo Patron

Hi @Akshay R ,

Check below client scripts running on Project task form.

Screenshot 2024-02-02 at 7.43.36 PM.png

 

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande