wo closes automatically when closing each work order task

RuthH8117563841
Kilo Contributor

What do I need to do so that WO does not close automatically when closing the work order task? What causes this?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@RuthH8117563841 

this is happening due to OOTB business rule "Roll Up Changes"

AnkurBawiskar_0-1761549249381.png

this is explained in KB and the workaround as well to make this not happen

Closing child Work Order task also closes parent work order 

If you don't want this to happen then add this in the BR condition

current.sys_class_name != 'wm_task' && current.sys_class_name != 'wm_order'

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

And how do I cancel this message, where does it come from?



And how do I cancel this message, where does it come from?

Hi Ankur, even from the kb article, I am not sure about this.

 

That script seems to read that it will, yes, call the roll up state changes to wo, but removing this to block the closure of wo when wot is closed may not be best practice since it also handles updating of estiamted times and work durations.

 

Be mindful of this when adding your condition to line 5.

Consider lines 13 and 15.

 

It's been a long time since London 🙂

I reached out to the team who wrote that KB. Condition on line 5 alone might be the play.

RuthH8117563841
Kilo Contributor

And how do I cancel this message, where does it come from?

 

 

@RuthH8117563841 

it must be coming from some OOTB business rule.

try searching

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