Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-2315

Images in emails received from customers are not in-line with text

    • We collect Jira Service Desk feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? See the corresponding suggestion.

      Update as of 27 October 2015

      This has been fixed, and relies on the underlying JIRA version as well as the Service Desk fixed version.

      Therefore, the fix will be available along with JIRA 7.1.0. This should be available to Cloud customers within 2 - 3 weeks, and a bit longer for Server customers.

      Currently if a customer replies to a Service Desk request, with imagem and text after the image in the mail body, the message will be added to the request not aligned the same way as the mail body.

      It will add all the text first, and the images in the bottom of the comment.

      As a Service Desk user that work a lot with images, I would like to keep the same mail body alignment in the ticket comment.

        1. comment.png
          comment.png
          47 kB
        2. mailbody.png
          mailbody.png
          33 kB

            [JSDSERVER-2315] Images in emails received from customers are not in-line with text

            I double check, we use `com.atlassian.mail.MailUtils#getBody(javax.mail.Message)` to get text content from the body.
            If the email is multipart, it just gets the content from plain text part which has no trace of inline image. Hence, there're no ways for us to rely on text content.

            The format `[image: Inline image 1]` is most likely from JIRA wiki markup. Emails can be from different sources, not just JIRA, so we should not count on that pattern.

            The best catch is passing html content and parsing to text with inline image markup.

            Phuong Doan (Inactive) added a comment - I double check, we use `com.atlassian.mail.MailUtils#getBody(javax.mail.Message)` to get text content from the body. If the email is multipart, it just gets the content from plain text part which has no trace of inline image. Hence, there're no ways for us to rely on text content. The format ` [image: Inline image 1] ` is most likely from JIRA wiki markup. Emails can be from different sources, not just JIRA, so we should not count on that pattern. The best catch is passing html content and parsing to text with inline image markup.

            Adding new API's into JIRA is definitely something that we can do, with agreement from the JIRA team on the shape since they will need to ensure they are supported going forward.

            Do you know how a JIRA project currently handles this same scenario? Any screenshot comparisons will be useful

            Matthew McMahon (Inactive) added a comment - Adding new API's into JIRA is definitely something that we can do, with agreement from the JIRA team on the shape since they will need to ensure they are supported going forward. Do you know how a JIRA project currently handles this same scenario? Any screenshot comparisons will be useful

            mmcmahon
            There're some aspects that concern me:

            • `commentBody` in `InternalServiceDeskCommentService#attachFilesAndComment` is text only. All html tags might be already stripped before hands.
            • Suppose we pass in html content, what pattern we use to detect inline images / inline attachments? Each mail client might format the image / attachments differently.
            • Alternatively, we can track the pattern `[image: Inline image 1]` which is rendered from JIRA. In this case, we might need some API agreement or test to prevent future changes.
            • Some small inline icons might not be displayed ok.

            Phuong Doan (Inactive) added a comment - mmcmahon There're some aspects that concern me: `commentBody` in `InternalServiceDeskCommentService#attachFilesAndComment` is text only. All html tags might be already stripped before hands. Suppose we pass in html content, what pattern we use to detect inline images / inline attachments? Each mail client might format the image / attachments differently. Alternatively, we can track the pattern ` [image: Inline image 1] ` which is rendered from JIRA. In this case, we might need some API agreement or test to prevent future changes. Some small inline icons might not be displayed ok.

              dtrinh@atlassian.com Diep Ngoc Trinh (Inactive)
              psouza Pedro Souza
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: