Created
April 1, 2019 10:15
-
-
Save m0veax/f807ac74119f2ceb0947e438170c8f69 to your computer and use it in GitHub Desktop.
Jump directly into an OTRS Ticket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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