Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

I hope your BR is configured when state changes to closed

what is your BR condition?

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

Hi,

In order to check the script functionality, I didn't used any condition on this.

Hi,

Did you add logs in BR?

is the BR before update?

Regards
Ankur

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

Yes. I used before update.

find_real_file.png

 



find_real_file.png

Hi,

so what came in logs?

Regards
Ankur

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