Incident Task

Aneela Sravani
Tera Contributor

Hello All

I had added incident task to incident form make short description, description and priority auto populated . I am getting some issues

1) If I change priority in incident form  it's auto populating in incident task form but not reflecting on incident task form list view and activity filter.

Tried client scripts but didn't updating priority in list view

 

Can you please help me with this

 

Regards 

Aneela Sravani Gopisetty

10 REPLIES 10

Hello @Sandeep Rajput 

Thank you for your response

Yes I had saved the changes in incident form. But still updated priority is not reflecting in list view

 

Thanks in Adavance

Hi @Aneela Sravani The best way to update Incident Task fields is through Business Rule.

Create a After update BR on incident table with condition:

Priority changes:

Script:

var inc = new GlideRecord('incident_task'); // incident task table
inc.addQuery('incident',current.sys_id); // incident field on incident task table holds incident sysid
inc.query();
while(inc.next())
{
    inc.priority = current.priority; // update priority
    inc.update();
}
Regards
Harish

@Aneela Sravani  There are couple of ways using which you can address this issue.

1. Create an onBefore update business rule which will run on incident table and update the fields of associated incident tasks.

2.OR If you are doing this via client script, then once the fields of the incident tasks are set, make sure to save the changes on the form.

Hello @Sandeep Rajput 

 

I tried that too but no luck. Can you please help me with any other way

@Aneela Sravani  Could you please let me know which approach you have tried so far. Also, please share the screenshot/script of the approach which didn't work for you.