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.

Problem task auto closer issue

nehasingh98
Tera Contributor

When problem is marked as closed then all open tasks are getting auto canceled. I want to restrict auto closer of task as well as problem if there is any open task associated with.

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

Hi @nehasingh98 ,

 

You have to do 2 things.

1. Deactivate the property which is responsible for closing the PTASK.

RunjayPatel_0-1732117119853.png

 

2. Create one before business rule and trigger it when state changes to close. In BR Gliderecord on pTask and look for any active pTask, If found then do current.setAbortAction(true).

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

View solution in original post

In this series i have explained about ServiceNow Discovery right from scratch like how you can enable the discovery plugin, what are the discovery prerequisites, what all question you should ask for your client before start the discovery implementation, how you can configure discovery schedules ...
2 REPLIES 2

Runjay Patel
Giga Sage

Hi @nehasingh98 ,

 

You have to do 2 things.

1. Deactivate the property which is responsible for closing the PTASK.

RunjayPatel_0-1732117119853.png

 

2. Create one before business rule and trigger it when state changes to close. In BR Gliderecord on pTask and look for any active pTask, If found then do current.setAbortAction(true).

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

 

 

In this series i have explained about ServiceNow Discovery right from scratch like how you can enable the discovery plugin, what are the discovery prerequisites, what all question you should ask for your client before start the discovery implementation, how you can configure discovery schedules ...

Thank you for your response! Will configure it and let you know.