Uploaded image for project: 'Xporter for Jira Cloud'
  1. Xporter for Jira Cloud
  2. XPORTERCLOUD-1630

Post function "Send Email" doesn't work properly when you use mappings and html in the body of the email

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 1.21.5
    • Post Functions
    • None
    • XPORTERCLOUD 2021 Sprint 2, XPORTERCLOUD 2021 Sprint 3
    • OK

    Description

      Title: Post function "Send Email" doesn't work properly when you use mappings and HTML in the body of the email

      Short Description: If you create a post-function with the action "Send Email" and in the body, you use HTML and mappings, the HTML is not being resolved correctly when you receive the email in your email account

      Test steps to reproduce:

      1.Create a post function with the action "Send email" and in the body use the following code:

      <p>Bonjour ${Prénom},</p>
      <p>Tu trouveras en pièce jointe l'attestation de déplacement.</p>
      <p>Bonne journée.</p>
      <p>Syndex-Jira</p>
      <p><span style="background-color:#ffffff; color:#333333; font-family:Arial; font-size:13.3333px">________________________</span>
      <br />
      <br />
      <br />
      <span style="font-size:12px"><em>Ce message se génère automatiquement, merci de ne pas y répondre en utilisant la fonction "répondre à l'expéditeur" de votre outil de messagerie.</em></span><br />
      </p>
      

      2. Execute post-function

      Actual Result: When you receive the email, the HTML used in the post-function is not being resolved correctly.

      Note: if you remove the mapping from the body, the HTML is being resolved correctly

      Expected Result: HTML must be resolved correctly even if the user uses mappings in the body of the email. Example of the expected result:

       

      Attachments

        1. image-2021-02-26-11-22-52-277.png
          190 kB
          Andreia Costa [X]
        2. image-2021-02-26-11-23-13-157.png
          190 kB
          Andreia Costa [X]
        3. image-2021-02-26-11-23-57-778.png
          68 kB
          Andreia Costa [X]

        Activity

          People

            afpc Andreia Costa [X] (Inactive)
            afpc Andreia Costa [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d