Attachments as internal notes, from Jira to ZD

Hello
I am syncing comments from Jira to ZD.
In ZD I want them to be internal notes so my help desk rep can use it to compose an official answer for the end-user.
The problem here is that if there is an attachment coming form Jira, it is sent immediately to the end-user because exalate adds a public reply “New attachment received from remote side:…” with the attachment.
I don’t care the attachments being added as separate comments in the ZD ticket, but I want them to be internal notes on ZD so they’re not sent over to the customer.
So far I’ve tried:

  1. on Jira outgoing script, set the replica comments internal property to true, was completely ignored in ZD incoming sync
  2. on ZD incoming script, set the comments internal property to true worked for the comment text, but the attachment was nevertheless added as a separate, public reply

None worked for the attachments.
Does anyone know how to do that?
Thanks

I believe you are on the right lines already. Can you try this please on ZD side:

issue.attachments     += replica.addedAttachments.collect {
  it.internal = true
  it
}

Please let me know if it helps.

Thanks
Majid

1 Like

Thanks so much @Majid that works perfectly!

1 Like

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