diff --git a/Servers & Workflows/RocketChat/Autotask RegEx Replacer.md b/Servers & Workflows/RocketChat/Autotask RegEx Replacer.md new file mode 100644 index 0000000..088f88c --- /dev/null +++ b/Servers & Workflows/RocketChat/Autotask RegEx Replacer.md @@ -0,0 +1,11 @@ +**Purpose**: +When someone types a message that includes a ticket number (e.g. `T00000000.0000`) we want to replace that text with an API-friendly URL that leverages Markdown language as well. + +From RocketChat, navigate to the "Marketplace" and look for "**Word Replacer**". Proceed to install the application. Once it has been installed, use the following RegEx filter / string in the application's settings: + +``` json +[{"search": "T(\\d{8}\\.\\d{4})", "replace": "[$&](https://ww15.autotask.net/Autotask/AutotaskExtend/ExecuteCommand.aspx?Code=OpenTicketDetail&TicketNumber=$&)"}] +``` + +!!! complete + Now everything should be functional and replacing ticket numbers with valid links that open the ticket in Autotask. \ No newline at end of file