Originally asked by Adrian Suter on 04 December 2020 (original question)
I like to implement some logging information in the connection-rules. As example, I have the following working example (Jira Server and Exalate 5.0.4-j8):
def allowedIssueTypes = ['Task', 'Story', 'Bug']
log.warn("Check for valid Issue-Types = " + replica.type?.name)
if (!allowedIssueTypes.contains(replica.type.name)) {
log.warn("Check for valid Issue-Types : Issue-Type = " + replica.type.name + "is not allowed. The issue with key " + replica.key + " will not be synchronized to hosting-zone. Check the trigger, the issue type should be excluded from synch trigger !")
return
}
I couldn’t find a script-helper or other information, how to access the connection-information. I like to add the current connection name to the log-message. How can I do that ?
Thanks
Adrian Suter