Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Displaying the error message when resolving the parent incident with the open child incidents.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//Table: Incident
//When To Run: Before update
//Condition: State changes to Resolved
var inc = new GlideRecord('incident');
inc.addQuery('parent_incident',current.sys_id);
inc.addEncodedQuery('active=true^stateIN1,2,3');
inc.query();
if(inc.getRowCount() != 0){
gs.addErrorMessage('Resolve the child incident(s) before resovling the parent incident');
current.setAbortAction(true);
}
Loading