Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

When Incident promoted to be Major Incident create Problem Automatically

Kishore47
Tera Contributor

When Incident promoted to be Major Incident create Problem Automatically

1 ACCEPTED SOLUTION

Deepak Shaerma
Mega Sage

Hi @Kishore47 

try using business rule for creating problem record when incident is promoted to major incident.

Table: Incident
When to Run: After Insert/update
Conditon : Major incident state is Accepted
Script: 

 if (current.major_incident_state == 'accepted' && previous.major_incident_state !=='accepted') {
           var problem = new GlideRecord('problem');
           problem.initialize();
           problem.short_description = current.short_description;
           problem.description = current.description;
           problem.insert(); // Create problem record
       }

try with this code.

Note: Please Mark this as Helpful and Accepted also if this solves your query. 
Thanks & Regards
Deepak Sharma

View solution in original post

5 REPLIES 5

@Kishore47  Thankyou for marking as helpful.