Attachment in internal Zendesk comment?

Originally asked by Mikael Bohlin on 03 July 2020 (original question)


How can i sync in attachment to internal comments in Zendesk ?

Source: Zendesk


Answer by Juan Grases on 03 July 2020

Sure! You can set the internal property in the attachment from the incoming script:

replica.addedAttachments = replica.addedAttachments.collect{it.internal = true; it}
issue.attachments = attachmentHelper.mergeAttachments(issue, replica)

Also it would be possible to detect from Jira if the attachment was included in a private or public comment, so you can decide where to set it on zendesk.

Best regards,

Juan


Comments:

Mikael Bohlin commented on 03 July 2020

Hi,

works now.

Thank you

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.