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 am trying to add an internal note to a Zendesk ticket on the first exalate sync that will add the username of the GitHub reporter and also the replica.key. Here is what I'm trying:
//add note about github username
if (firstSync) {
def github_username = []
github_username = nodeHelper.getUser(replica.reporter?.username)
issue.comments =
comment.internal = true
comment.body = github_username + replica.key
}
I am getting the following error:
Error impact: Relation
Error type: Incoming script error
For input string: "{this is the github username}"
Hi Sydney,
Maybe you can try
Incoming Zendesk:
Kind regards,
Ariel
Hi Ariel,
Thanks, copy and pasting this wouldn't let me save so I edited to:
Update: This does not work. Can you help further?
Hi Sydney,
Can you please try:
Kind regards,
Ariel
Update:
this seems to do the trick!
Ok great, I added the false statement since you may not want to add this comment to the replica, so if a new comment is added in Zendesk the just added comment won't show on GitHub side, but only the new ones. Also, the else clause in case you want to make a second sync.
Kind regards,
Ariel