Exalating attachments (pasted images) on azuredevops result in same-name files on receiving JIRA side

Originally asked by Ben De Pauw on 12 January 2021 (original question)


exalating attachments (pasted images) on azuredevops result in transferred into same-name files on the receiving JIRA side,

this means you need to save copies & rename manually before being able to differentiate between the diff files.

This should be avoided. Appreciate a workaround for this / a solution to deal with this.

Unfortunately, AzureDevOps stores these attachments inline, without visible filenames, so I assume that the filename given is determined by the outgoing issue filter processing.

Thanks,

Ben


Answer by Francis Martens (Exalate) on 12 January 2021

Hi Ben De Pauw

Nice to meet you here :smile:
You can modify the names of the files in the incoming sync on the Jira side.

I believe

Incoming Sync - Jira side - totally untested

issue.attachments = attachmentHelper.mergeAttachments (issue, replica, {
       it.name = "ADO_" + it.name
})