Tt number
A Trouble Ticket number.
validate_tt_number(tt_number)
Validate a string to match a specific pattern.
This method checks if the input string is exactly 7 digits. Alternatively, the ticket number format of the old system is also allowd: these start with 'TT#' and are followed by exactly 16 digits.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tt_number
|
str
|
The TT number as string to validate |
required |
Returns:
| Type | Description |
|---|---|
str
|
The TT number string if TT number match was successful. |