Hey Paul,
CA Support has been able to reproduce the issue per their comments in the ticket I opened. Copying below as requested:
========================
TEST CASE
========================
In a local environment with SD 14.1 Cum2
Log in SD
In the results panel selected all incidents
Added in the additional search arguments the following statement:
(type = 'I' AND act_log.analyst.userid = 'ServiceDesk')
Enabled the debug mode for the sqlclass.c
Then made the search
Stopped the debug mode and check the log file
The following statement took 0 milliseconds: Clause (SELECT DISTINCT call_req.open_date, call_req.id, min(attached_sla.time_to_violation) AS "mintime", min(usp_target_time.target_time) AS "mintgt", call_req.ref_num FROM (call_req LEFT JOIN attached_sla ON call_req.persid = attached_sla.mapped_cr LEFT JOIN usp_target_time ON call_req.persid = usp_target_time.mapped_cr), ca_contact, act_log WHERE ( call_req.active_flag = 0 AND ( call_req.assignee IS NOT NULL OR call_req.group_id IS NOT NULL ) AND ( call_req.type = ? AND ( act_log.internal IS NULL OR act_log.internal != 1 ) AND act_log.call_req_id = call_req.persid AND act_log.analyst = ca_contact.contact_uuid AND ca_contact.userid = ? ) ) AND ( call_req.type = ? ) GROUP BY call_req.open_date, call_req.id, call_req.ref_num ORDER BY call_req.open_date DESC) Input (<string>I|<string>ServiceDesk|<string>I)
Notice the following where clause added:
( act_log.internal IS NULL OR act_log.internal != 1)
This confirms the statement of the customer where they are not able to retrieve the log comments that are internal.