Last completion time of workplace maintenance plan record

Aishwaryayadav6
Tera Contributor

I am encountering a scenario where the Next Run Time is being recalculated and updated on the Workplace Maintenance M2M Plan record every time the nightly scheduled job runs. However, the Last Completion Time remains unchanged.

Could you clarify under what conditions the Last Completion Time is updated and what logic is used to calculate it? 

2 REPLIES 2

Sanjay191
Kilo Patron

Hi @Aishwaryayadav6 

Sanjay191_0-1792586260400.png


The Maintenance Plan is configured to run daily, as shown in the screenshot. The Last Completion Time displays the date and time when the schedule last ran, while the Next Run Time displays the date and time when it is scheduled to run next. Since the schedule has already run today, the next run time is tomorrow. This is the out-of-the-box (OOB) ServiceNow configuration for tracking the last and next scheduled execution.


If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You

Hi @Aishwaryayadav6 

If you need to debug or analyze the script logic and understand the underlying configurations, you can refer to the Script Include below, which handles all Maintenance Plan-related changes and this is the OOB script include so please do not make change .

PlannedMaintenanceExtensionPointImpl

Sanjay191_0-1792654727065.png

 If you found my response helpful and it answered your question, please consider marking it as the accepted solution and giving it a thumbs up. It helps others in the community find the solution more easily.

Thank you!