Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70844

Attaching an image using the "What you see what you get" panel in the comment section does not update the file name correctly in the comment

    XMLWordPrintable

Details

    Description

      Issue Summary

      Attaching a image using the "What you see what you get" panel in the comment section does not update the file name attached.
      Example:
      Upload image001.png then check out the text mode in the comment, it points to the correct image which is image001.png, but when uploading another image with the same name image001.png the image uploads correctly with the new name image001-1.png but the comment does not get updated and remains with the original name of the image which is image001.png which is an incorrect behaviour as the comment should be updated to include the new name of the picture which is image001-1.png.

      Steps to Reproduce

      1. Attach picture attachment in the "What you see what you get" panel in the comment section (Example image001.png)
      2. Post the comment
      3. Check the comment in "Text" Mode, it should be
        !image001.png|thumbnail!
        
      4. Now create a new comment and upload another picture with the same name (image001.png) from the "What you see what you get" panel in the comment section.
      5. The image is uploaded with the name (image001-1.png), which is the correct behaviour as this was fixed in Jira 8.6 and above (https://jira.atlassian.com/browse/JRASERVER-2169)
      6. Check out the comment in "Text" Mode, it shows
        !image001.png|thumbnail!
        

        which is incorrect.

      Expected Results

      When checking out the comment in text mode after uploading the second image, the comment should be

       !image001-1.png|thumbnail! 

      to show the correct picture attached.

      Actual Results

      When checking out the comment in text mode after uploading the second image, the comment shows

       !image001.png|thumbnail! 

      which is incorrect because it shows the first picture attached not the second picture.

      Workaround

      Currently, the workaround for this issue is to use the "Drag and Drop" feature to add the image then choose the image from the "What you see what you get" panel in the comment section.

      OR

      To use the "Browse" feature from the attachment Section in the ticket then choose the image from the "What you see what you get" panel in the comment section.

      You could also manually edit the image name from the comment in text mode.

      Note that you can find both those features from the section shown in the picture below:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ahassanen@atlassian.com Ahmed Hassanen (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: