Business duration and duration fields are not populating in incident task table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 09:31 PM
Hi,
I am trying to populate the business duration and duration field on incident task by cloning the OOTB BR mark_closed on incident table.
How ever the code seems not working.
Any inputs on how to achieve this.
Below is the code :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2022 10:52 PM
we are not aware of your instance configuration.
you need to debug further.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 08:00 AM
I was able to fix the issue. The issue is the point of time the BR is running, the closed is not populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 08:11 AM
It should have worked earlier as well as you didn't give any condition to the BR
Also we were considering end time as the now time when the BR runs just to confirm the logic works well.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2022 08:28 AM
Yes,
Business Duration is calculated based on the calendars defined at SLA.
Because of my PDI is brand new one. I am not aware of configuration of business days and hours that are configured.
After close look on the calendar I was able to fix the issue.