When creating an INC from an IMS ticket, does the INC then become a parent ticket for the IMS, and will close once the INC is close? or do i have to close the IMS manually?

gaetano dicarlo
Kilo Explorer

When creating an INC from an IMS ticket, does the INC then become a parent ticket for the IMS, and will close once the INC is close? or do i have to close the IMS manually?

I want to know when creating an incident ticket from my Interaction ticket, do i need to go back and close the interaction ticket manually. Or will it be closed automatically once the Incident ticket is close?

1 ACCEPTED SOLUTION

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Write an after business rule on incident table as below.

When : After

Check box : Insert & Update

Condition : State CHANGES TO Closed

Script :

var grChild = new GlideRecord('child_table');
grChild.addQuery('parent',current.sys_id);
grChild.addActiveQuery();
grChild.query();
while (grChild.next() ) {
   grChild.state = 'CLOSED_STATE'; //give closed state value here
   grChild.work_notes = 'Task closed from Parent'; 
   grChild.update();
}

 

If Incident is not the parent then in line number two, give field name which is linked to incident table in IMS form.

 

Mark as correct and helpful if it solved your query.

Regards,

Sumanth

View solution in original post

3 REPLIES 3

Musab Rasheed
Tera Sage
Tera Sage

Hello,

No!, it won't close IMS record automatically you have to do it manually, But I would suggest you write one After BR on Incident table to close associated Interactions once Incident is closed.

Don't forgot to mark my answer as correct if that helps.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

"But I would suggest you write one After BR on Incident table to close associated Interactions once Incident is closed"

 

How is this done exactly?

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Write an after business rule on incident table as below.

When : After

Check box : Insert & Update

Condition : State CHANGES TO Closed

Script :

var grChild = new GlideRecord('child_table');
grChild.addQuery('parent',current.sys_id);
grChild.addActiveQuery();
grChild.query();
while (grChild.next() ) {
   grChild.state = 'CLOSED_STATE'; //give closed state value here
   grChild.work_notes = 'Task closed from Parent'; 
   grChild.update();
}

 

If Incident is not the parent then in line number two, give field name which is linked to incident table in IMS form.

 

Mark as correct and helpful if it solved your query.

Regards,

Sumanth