- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 03:59 PM
I have tried current.setAbortAction(true), but the incident still gets created.
gs.log('IA-BACKUP-Group=' + current.assignment_group.getDisplayValue());
if (current.assignment_group == null) {
// abort
current.setAbortAction(true);
}
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 04:42 PM
Thanks for the reply. I don't do an insert. I did find my problem. The test: if (current.assignment_group == null) is not correct. I don't set the assignment group. So either its NOT null OR I didn't have the correct syntax. To correct the issue, I first took out the test and just aborted and it worked. Next I added a variable and initialized it to false. If the group is found, then set it to true. Then I test that.
if (!groupfound) {
// abort
current.setAbortAction(true);
}
This does abort the creation of the incident.
In the Email Log, the following Information message was found:
Skipping 'CBC-Create Incident-Backup Failure', did not create or update incident

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 04:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2017 04:42 PM
Thanks for the reply. I don't do an insert. I did find my problem. The test: if (current.assignment_group == null) is not correct. I don't set the assignment group. So either its NOT null OR I didn't have the correct syntax. To correct the issue, I first took out the test and just aborted and it worked. Next I added a variable and initialized it to false. If the group is found, then set it to true. Then I test that.
if (!groupfound) {
// abort
current.setAbortAction(true);
}
This does abort the creation of the incident.
In the Email Log, the following Information message was found:
Skipping 'CBC-Create Incident-Backup Failure', did not create or update incident