- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 04:17 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 08:23 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 01:44 PM
so, I think I spoke too soon. So i created a plan to trigger if priority is high and category is network. when I create an incident that does not have a plan or tasks, the tasks for the other still shows up. in other words, tasks show up despite associated to incident or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 01:48 PM
Can you share image of the issue and the relationship you created. That would be helpful to debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2023 03:03 PM
Here is the communication Plan definition.
Relationship
New incident with priority 2
Incident 2 - priority is not 2
still shows the tasks even though there is no comm plan related.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 07:34 AM
@Manmohan K were you able to check the screenshots I provided?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 07:52 AM