Skip to content

Instantly share code, notes, and snippets.

@m0veax
Created April 1, 2019 10:15
Show Gist options
  • Save m0veax/f807ac74119f2ceb0947e438170c8f69 to your computer and use it in GitHub Desktop.
Save m0veax/f807ac74119f2ceb0947e438170c8f69 to your computer and use it in GitHub Desktop.
Jump directly into an OTRS Ticket
'author Patrick Kilter
'email [email protected]
'OTRS Base URL
DIM strOtrsBaseUrl
strOtrsBaseUrl = "http://otrs.local"
'get TN
DIM strTn
strTn =InputBox("Ticket Number", "OTRS FastForward")
'Alternative TN Format
If InStr(strTn, "#") > 0 then strTn = right(strTn, len(strTn)-InstrRev(strTn, "#") )
'Trim
strTn = Trim(strTn)
If Len(strTn) = 0 then Wscript.Quit
'open in Chrome
Dim runner
runner = "chrome " & strOtrsBaseUrl & "/otrs/index.pl?Action=AgentTicketZoom;TicketNumber=" & strTn
Set objShell = CreateObject("Wscript.Shell")
objShell.Run runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment