Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
I feel like this is a simple syntax error or something on my part, but I'm not receiving an error. I have two projects: TMSServiceDesk and TMS. I want all comments that sync from TMS to TMSServiceDesk to sync as internal so that the engineering comments do not appear in the customer portal. I'd like ALL comments from the TMSServiceDesk instance to be visible in the TMS instance.
With the current script below, the comments are synching, but all comments are coming in as External in the TMSServiceDesk instance and are visible to the customer in the customer portal.
I am using a visual connection with script. Here are the two script mappings I have:
if (executionInstanceName == "TMSServiceDesk")
issue.comments = commentHelper.mergeComments(
issue, replica, {it.internal = true; it} {
comment ->
comment.body = "|https://wenergysoftware.atlassian.net/browse/"+replica.key+", "+ comment.author.displayName + " commented: \n" +comment.body
}
)
if (executionInstanceName == "TMS")
issue.comments = commentHelper.mergeComments(
issue, replica, {
comment ->
comment.body = "|https://wenergysoftware.atlassian.net/browse/"+replica.key+", "+ comment.author.displayName + " commented: \n" +comment.body
}
)