What is the configuration behind "Actual duration" field calculation on Project task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 05:37 AM - edited 02-02-2024 05:38 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 05:58 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 06:14 AM
Hi @Akshay R ,
Check below client scripts running on Project task form.
Thanks
Anil Lande