Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Parent description should be dynamically changes when child description is changed in major incident

RMU
Tera Contributor

HI i have a requirement like when a major incident is created child incident description is copied to it at the beginning but now is should dynamically change like when a child incident desc is updated parent desc should also be automatically update how to achieve this through business rule??? #majorincident #incident

1 ACCEPTED SOLUTION

Bhavya11
Kilo Patron

hi @RMU ,

 

yes you need to make After update Business rule ,script something like below

if (current.parent != null) {
    var parentIncident = new GlideRecord('incident');
    if (parentIncident.get(current.parent_incident)) {
        
       
        parentIncident.description += '' + current.description;
        parentIncident.update();
        
        gs.info('Parent incident description updated with child incident description.');
    }
}

 

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

View solution in original post

3 REPLIES 3

Bhavya11
Kilo Patron

hi @RMU ,

 

yes you need to make After update Business rule ,script something like below

if (current.parent != null) {
    var parentIncident = new GlideRecord('incident');
    if (parentIncident.get(current.parent_incident)) {
        
       
        parentIncident.description += '' + current.description;
        parentIncident.update();
        
        gs.info('Parent incident description updated with child incident description.');
    }
}

 

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

RMU
Tera Contributor

Hi @Bhavya11 , 

Will there be any OOB functionality to copy description from child to parent incident?

 

Hi @RMU ,

 

There is no OOB functionality to copy description from child to parent incident.

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK