Add a CI to an Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2024 08:30 AM
Hello everyone, I have created several business rules based on this one to meet the requirements (when an Aloha Incident occurs. Assigned to field changes, the new value must be established in all affected CIs) but none of the ones I have worked correctly for me. created; I would appreciate your help, thanks in advance and greetings.
(function executeRule(current, previous /* null when asynchronous */ ) {
var assignedToAloha = current.task.assigned_to;
var ci = current.ci_item.getRefRecord();
if (ci.isValidRecord()) {
ci.assigned_to = assignedAAloha;
ci.update();
}
})(previous current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2024 11:29 AM
I need to correctly go through the CIs associated with that table like this: