Adding communication tasks on incident related list

Liz Abraham
Tera Contributor

Hello,

 

I am trying to add a related list on the incident form that has related communication tasks from the incident_alert_task table. I created a relationship below . it shows me all records from the incident_alert_task but not of the specific incident when I open the incident. What am I missing?

 

LizAbraham_0-1685661381650.png

 

1 ACCEPTED SOLUTION

Manmohan K
Tera Sage

Hi @Liz Abraham ,

 

Please correct the code in the Relationship Communication Tasks as shown below

function refineQuery(current, parent) {

    current.addQuery('source_incident', parent);

})(current, parent);

 

I have tried on my PDI and its working

ManmohanK_0-1685676180550.png

 

 

View solution in original post

14 REPLIES 14

Manmohan K
Tera Sage

Hi @Liz Abraham ,

 

Please correct the code in the Relationship Communication Tasks as shown below

function refineQuery(current, parent) {

    current.addQuery('source_incident', parent);

})(current, parent);

 

I have tried on my PDI and its working

ManmohanK_0-1685676180550.png

 

 

Liz Abraham
Tera Contributor

@Manmohan K , Thank you but unfortunately it is not working on my PDI. it still shows me all the tasks. I had installed the major incident plugin the other day on my PDI and uninstalled it. would any functionality be overriding it?

@Liz Abraham 

 

Did you add the related list on incident form after creating relationship. If yes, Can you share the image of related list on incident form where you see tasks on your PDI

Liz Abraham
Tera Contributor

I reset my instance and created the plan and task and now it works ! Thanks @Manmohan K !