Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

problem task , In this i need business duration calculation based on created and closed ,

Priya435678
Tera Contributor

i tried manny scripts nothing working in BR OR override , i checked for schedules too and timezone , whaT I NEED TO DO

4 REPLIES 4

glideFather
Tera Patron

Hi @Priya435678,

 

it seems that your post is not complete, could you possibly review and eventually edit your question? it's not clear what you want to achieve...


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

Ankur Bawiskar
Tera Patron

@Priya435678 

refer OOTB BR "mark_resolved" on incident table and create BR similar to that on your Problem Task table

that OOTB BR populates the Business Duration and Calendar Duration when INC is Resolved/Closed

AnkurBawiskar_0-1765974242969.png

 

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

I tried using these script but its shwoing empty

@Priya435678 

it means you are doing something wrong.

the OOTB BR does work fine

Check the field names you are using are correct, debug by adding logs

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