/***************************************************************** IMPORTANT NOTE: The name of the formatting script should be same with name of the channel. sametime.groovy, formats the messages of the channel with name sametime. The following variables are available in formatting scripts: from: Username of the user who has sent the message. For example: rsadmin, johndoe text: Text of the message to be sent. For example: I will be not available for 2 hours. target: This is the target that is specified in the user profile. For example for a Sametime channel, john doe is a possible target. properties: Additional properties of a map. To access the Severity property, use properties.Severity. Sametime channel uses the following properties of the message: rinf_sametime_body: sametime body ******************************************************************/ def message = from + " says: " + text; properties.each{key,value-> message = message + " " + key + ": " + value; } properties.rinf_sametime_body = message;