Related List Condtions on a Report is not producing expected resultsIssue Related List Condtions on a Report is not producing expected resultsmultiple conditions and ORs across different joins, the join condition for Related List Queries (RLQUERY) was appended to the last join and these joins are producing incorrect resultsReleaseVancouver patch3Vancouver patch4CauseRLQuery join conditions being appended to last join can produce incorrect result setResolutionThe Related List Condition that is broken can be written as an equivalent Script Include and used as a custom report filter. Below is a general example, but this can be used for your particular report. Let’s assume the report is as follows: Source Type: Table Table: Incident Related List Conditions: Greater than or Equal to 1, Change Task → Parent, Assignment group is Database OR Help Desk OR Hardware Create a Script Include as follows: Name: CustomReportingFilters Client Callable: True Active: True Script: var CustomReportingFilters = Class.create();CustomReportingFilters.prototype = {getRecordsWithRelatedRecords: function() {var relatedRecords = [];var incident = new GlideRecord('incident');incident.query();while (incident.next()) { var relatedChangeTask = new GlideRecord('change_task'); relatedChangeTask.addQuery('parent', incident.getValue('sys_id')); relatedChangeTask.addEncodedQuery('assignment_group=287ee6fea9fe198100ada7950d0b1b73^ORassignment_group=8a5055c9c61122780043563ef53438e3^ORassignment_group=679434f053231300e321ddeeff7b12d8'); relatedChangeTask.query(); while (relatedChangeTask.next()) { relatedRecords.push(relatedChangeTask.getValue('parent')); }}return relatedRecords;},type: 'CustomReportingFilters'}; The GlideRecord query in the script adds the related list conditions to a query on change_task. This Script include will return the same sys_id’s for the incident’s that match the related list query condition defined in the report. Now, create a report as follows: Source Type: Table Table: Incident Conditions: [sys_id] [is] [javascript:new CustomReportingFilters().getRecordsWithRelatedRecords()] Run the report. This should return the expected Incident records.Related LinksFixed in Vancouver patch4