Skip to content

Commit d13be20

Browse files
authored
Create README.md
1 parent 89cec72 commit d13be20

File tree

1 file changed

+16
-0
lines changed
  • Server-Side Components/Business Rules/Abort Parent Incident Closure When Child is Open

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This business rule is designed for ServiceNow to prevent a parent incident from being closed or resolved while it still has active child incidents.
2+
If a user attempts to set the parent incident's state to "Resolved," "Closed," or "Cancelled," the rule will query for any related child incidents that are still open.
3+
If open children are found, the update will be aborted, and an error message will be displayed to the user.
4+
5+
Navigate to System Definition > Business Rules in the ServiceNow filter navigator.
6+
Click New.
7+
Fill out the form with the following details:
8+
Name: Prevent Parent Closure with Open Children
9+
Table: Incident [incident]
10+
Advanced: true
11+
When: before
12+
Update: Check this box.
13+
In the When to run tab, set the Condition field:
14+
current.state.changesTo(7) || current.state.changesTo(6) || current.state.changesTo(8)
15+
Note: The state values (6, 7, 8) may vary based on your instance configuration.
16+
In the Advanced tab, paste the provided script into the Script field.

0 commit comments

Comments
 (0)