I have run testing with the following, and it has worked for me and my colleague locally here. Could you please check this out and let me know the result?
Hi @Angel_Hidalgo , I have tested with these rules. Result was, file name .jpg remained intact. I attached within Azure Work Item from āAttachmentā button on right side. I have also tested with an inline image along with a comment. Please give it a try, and let me know.
Thank you for your response and for testing the attachment scenarios.
However, the issue Iām experiencing is not related to files attached through the āAttachmentā section of the Azure DevOps work item. The problem occurs specifically with images inserted directly into the comments of a DevOps work item (for example, pasted inline or uploaded via the comment editor).
These inline images appear correctly in Azure DevOps, but they do not get transferred properly through the synchronization process. Either they are missing in the destination system or appear broken.
Could you please confirm whether inline comment images are supported in the current integration setup? If not, is there any recommended workaround or planned support for this?
This should fully work bi-directionally between Jira Cloud and Azure DevOps since Exalate 5.12.0. The key is to use the correct nodeHelper methods to do the transformations.
Thank you very much for the video ā it really helps to understand the process better. Iām sharing a screenshot so you can see that the images posted in comments from DevOps are all named image.png . If thereās only one image in the comment, it works fine. But try adding more comments from DevOps with additional images (either in the same comment or in separate ones), and youāll notice that all of them are named image.png . If I get the chance, Iāll also try to upload a video to show you.
I was finally able to sync inline images. Interestingly, unlike you and Majid, Iām seeing the images synced with the correct filenamesāusing the exact same script youāre both using. As shown in the screenshots below:
@Javier I was unable to test the image name thing - never got the time. I will try today and let you know, but if you are unable to repro, this might not be a bug.
I believe Iāve identified the root cause. I was able to reproduce the behavior you described, and I found that when using tools like the Snipping Tool or Screenshot Tool, the system assigns the default filename āimage.pngā to each image. When two such images are added to a comment in Azure DevOps (ADO), the integration sends both with the same filename.
As a result, Jira Cloud displays the same image twice, even though two different images were originally added. This appears to be due to Jira interpreting both attachments as the same file because of the identical names.
However, if you save or rename the images with unique filenames before inserting them into the ADO comment, Jira Cloud correctly displays both images.
Recommended Workaround:
Try saving your screenshots with different names (e.g., image1.png, image2.png) before pasting them to the ADO comment. This should resolve the duplication issue youāre seeing in Jira Cloud.
Thanks to @Javier for letting me know that this thread was going on.
We have the same issue whereby if an image is copied (rather than saved and attached), when the images sync across from Azure DevOps to Jira, Exalate will add the comment with the same image name.
However, if you look at the screenshots shared by @Angel_Hidalgo, the images have different IDs within the Exalate replica.
Could Exalate use these IDs instead of the filenames to identify which image should be shown?
This would help as we are currently pasting screenshots etc as single comments to work around this issue - which is not ideal.
We reviewed this with the team and confirmed that the issue stems from a Jira Cloud limitation, not Exalate. Jira Cloud uses the filename as an identifier for images. When images with the same name are added in a comment directly within Jira Cloud, the system automatically appends a differentiator (such as a date and timestamp) to the filename. However, when images are added via the API, this behavior does not occur.
With that in mind, weāre exploring a workaround by implementing a Groovy script in the Outgoing sync of Azure DevOps. Our goal is to handle the image duplication issue without requiring images to be manually saved with a different name before being copied into the comments.
Iāll keep you updated on whether this solution works as intended.