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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

did you check BR triggered or not?

Regards
Ankur

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

yes. 

Below is the output when I tried printing it.

00:00:00

Hi,

update the line 4 as this

var closed = new GlideDateTime();

Regards
Ankur

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

Hi,

same output - 00:00:00