(gerry)
Here, configure expressions to find ticket texts that should automatically provided with a link. This can be useful if other tickets or external pages for devices or similar are to be referenced quickly within ticket texts.
Note: This feature only affects the ticket list (web). It has no effect in the desktop application, reports, taskplanner, email, or search. No data is changed on tickets, so this feature can be turned on and off without harm and be tested on existing tickets.
The expression uses a regular expression to find the desired texts. Here, as a special rule, the expression must contain at least one group (a pair of parentheses). This group (it must be the first group of the expression) marks the Id, this is a number or string which can then be linked to in the resulting link (e.g. a ticket-ID).
In the example "#((\d[\.\,]?)*\d)"
the digits, as well as if necessary thousand separators, are enclosed by the brackets, but the hash is not. In the link, these digits are then used as {id_int}
in the URL.
See https://www.regular-expressions.info/quickstart.html for more information on how regular expressions work.
The link represents the URL to link to. The following placeholders can be used:
{id}
: this is the id marked in the expression, without conversions. Can contain any characters.{id_int}
: this is the id marked in the expression, converted to an integer. Possible thousands separators are removed by this. Remember that ',' or '.' are always interpreted as thousands separators, not as decimal points. If no conversion is possible this placeholder will not be replaced.{serverurl}
: the base server url of this Helpdesk server. Never ends with a slash. Does not need to be used when linking to external pages.Predefined linking:
"#((\d[\.\,]?)*\d)"
{serverurl}/ticketlist/ticket/{id_int}
Further example:
"inv-([a-zA-Z0-9]+)"
https://department.company.com/inventory/{id}/view
.*
" or ".+
". These expressions match arbitrary characters, as well as HTML control characters ("<,>,") and there is a risk of then suddenly matching the entire text.&ä(\d*)
.