Good Morning,
I have a custom report that I have billed that captures our time tracking on tickets. We recently added a custom field to signal if its a billable item back to the department. When I try to modify the report to include the custom field in the report (only want to see the results from that custom field) it either shows all custom fields data or it show only if there is a result of the custom field. Is there a way to have it only show the results of that specific field even if no data is in the field?
Here is the current report:
Select Top 1000000 '#' + Cast(htblticket.ticketid As nvarchar) As Ticket,
htblticket.ticketid,
htbltickettypes.typename As Type,
htblticket.subject As Subject,
htblusers.name As [User],
htblusers.department As Department,
htblnotes.timeworkeddate As [Date Entered],
htblnotes.timeworked As [Time Worked (Minutes)],
'../helpdesk/icons/' + htbltickettypes.icon As Icon,
htblusers1.name As Agent
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblusers On htblusers.userid = htblticket.fromuserid
Inner Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Inner Join htblusers htblusers1 On htblnotes.timeworkeduserid =
htblusers1.userid
Inner Join htblticketcustomfield On htblticket.ticketid =
htblticketcustomfield.ticketid
Where htblnotes.timeworkeddate > '01/01/2023 00:00:00' And
htblnotes.timeworked > 1
Group By '#' + Cast(htblticket.ticketid As nvarchar),
htblticket.ticketid,
htbltickettypes.typename,
htblticket.subject,
htblusers.name,
htblusers.department,
htblnotes.timeworkeddate,
htblnotes.timeworked,
'../helpdesk/icons/' + htbltickettypes.icon,
htblusers1.name
Order By htblticket.ticketid