Expected Behaviour: Jira comment with attachments should create a ZD comment with all the attachments
Actual Behaviour: Jira comment with attachment creates a ZD comment with the original comment and multiple new comments per attachments. In other words, Exalate creates a new comment per new attachment… If you have three new attachment in one Jira comment. Exalate will create four new comments in ZD. One comment for the Jira comment text, three comments for each new attachments.
It seems to be triggered after the scripts run then looks for
!.*filename.*!
Then creates new ZD comment per attachment pattern found in Jira text.
I asked someone with knowledge of how Zendesk handle attachments that “Adding multiple files to the same upload is handled by splitting requests and passing the API token received from the first request to each subsequent request.”
This is actually a bug currently in our backlog i.e. if you add 3 attachments to a remote comment, it can come over to Zendesk as a single comment with all three attachments, but the codebase does push the “extra” 3 attachment messages. I would urge you to try this solution and hopefully that should help alleviate at least some of the pain: