Business duration and duration fields are not populating in incident task table

PraveenGoud1
Giga Contributor

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 :

find_real_file.png

18 REPLIES 18

we are not aware of your instance configuration.

you need to debug further.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

PraveenGoud1
Giga Contributor

I was able to fix the issue. The issue is the point of time the BR is running, the closed is not populated.

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.