The ServiceNow Incident widget has a link when you click on the incident number it opens ServiceNow to the selected ticket number. Unfortunately the ServiceNow Incident widget doesn't contain all the information I need, so I've created a SWQL query with everything I need on it. The problem is creating this hyperlink for the IncidentNumber column.
SELECT
ToLocal(s.LastTriggerTime) AS [Date]
,s.IncidentNumber AS [Ticket#]
,o.RelatedNodeCaption
,s.State
,s.AssignedTo
,s.Description
,s.IncidentUrl
FROM Orion.ServiceNow.AlertIncident s
JOIN Orion.AlertObjects o ON o.AlertObjectID = s.AlertObjectID
JOIN Orion.Nodes n ON n.NodeID = o.RelatedNodeId
WHERE s.State IN ('New','Work in Progress')
I tried adding
,'https://<ServicNow URL>/nav_to.do?uri=incident.do?sys_id:' + ToString(s.IncidentNumber) AS [_LinkFor_Ticket#]
but there's no Details Page Link option under "Add display settings" drop-down list. I also tried "Allow HTML tags" checkbox. Neither option gives me a hyperlink option.