
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2020 02:03 AM
Good afternoon all,
I need some help please, possibly in two parts.
Firstly, I have a requirement to relate the survey instance to the incident that triggered it. I have referenced the following article:
Survey Response as related list on record
Rather than create a new relationship between incident and asmt_metric_result, I need to create it between incident and asmt_assessment_instance, but when I apply the script my related list shows all survey instances.
What do I need to change on the code to match the survey instance to the trigger_id and show only this instance on the related list of the trigger id incident record.
And now for the second part.
If the survey response requires further investigation, a case record will be opened. We already have a related list for Incident, so could easily select INC000073471 for example. But could we then query any instance against this trigger ID and add the assessment instance as a related list on the case?
Any help huch appreciated.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 01:33 AM
Managed to resolve this using the following:
current.addQuery('task_id.parent', parent.sys_id.toString());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2020 01:33 AM
Managed to resolve this using the following:
current.addQuery('task_id.parent', parent.sys_id.toString());

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 06:56 PM
Managed to resolve this using the following code
current.addQuery('trigger_id', parent.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2022 06:56 PM
Managed to resolve this using the following code
current.addQuery('trigger_id', parent.sys_id);