We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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

Not applicable

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 @Community Alums ,

 

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 @Community Alums ,

 

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

Not applicable

Hi @Bhavya11 , 

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

 

Hi @Community Alums ,

 

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