This SmartTask validates that every published session has specific name format. To achieve it, SmartTask runs on each publish operation attempt, extracts the session name format specified in the custom data field and validates it against the actual session name.
You can download the attached SmartTask in txt format and import it to your Security Management Server. Right after import, you'll find the SmartTask itself in Manage and Settings > SmartTasks, the script it uses resides in Scripts Repository (Gateways & Servers > Scripts).
In this example, we want session name to start with ticket number (CR).
To achieve that, We configure a SmartTask that will run before a session is published and run a script that will validate that the session name prefix matches our format.
If it doesn't, the script will indicate to abort the publish operation.