Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-11628

Changing fields using Javascript breaks export if field contains an image

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC 7.12.4
    • Xray DC 8.4.0
    • Document Generator
    • None
    • Jira v10.3.18

      Xray 7.12.4-j10

    • Standard
    • UNCOVERED

    Description

      Description
      Changing fields using Javascript breaks export if field contains an image

      How to reproduce

      1. Create an issue with the following description
        _*As*_ a user of Foo
        
        *Scenario 1 [Bar]*
         * Given I Foo
         * Then I could see
         ** the corresponding *bar*
         
         !screenshot-1.png|thumbnail!
        
        |Japan|[Japan@xy.com|mailto:Japan@xy.com]|
        |South Korea|[South-Korea@xy.com|mailto:South-Korea@xy.com]|
        |Australia and *New Zealand*|*[australia-helpdesk@xy.com|mailto:australia-helpdesk@xy.com]*|
        
      1. Create a template with the following code:
        ${wiki:%{'${escape:Description}'.replaceAll('{','{').replaceAll('}','}').replaceAll('mailto:',' ')}}
        
      1. Export this template, then remove the image from description and try to export again

      Actual result/Attachments
      When image is present, export gets stuck

      Expected result
      Description should be exported without issues

      Version

      • Jira v10.3.18
      • Xray 7.12.4-j10

      Attachments

        Activity

          People

            afro Andre Fernandes Rodrigues
            joao.silva João Silva
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: