Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-79456

Importing Issues with Links that have Special Characters might cause broken references in Jira's New Issue View

    XMLWordPrintable

Details

    Description

      Issue Summary

      After a Site Import on Jira Cloud, New Issue View will show borked content if issues have links with special characters on their description field.

      Steps to Reproduce

      1. On Jira Server, create an issue.
      2. Make sure to add an URL in its description field that has special characters on it, such as exclamation marks, for example:
        https://test.alfa.com/logs/delta/dogs#/discover?_g=negate:!f,params:(query:'turuturu',type:phrase),type:phrase,value:'balabala'),query:(match:(message:(query:'yeahyeah',type:phrase)))),('$state':(store:appState),meta:(alias:!n,disabled:!f,index:tchurutchuru,key:message,negate:!f,params:(query:'MARS(LOLRUS->Whatever)',type:phrase),type:phrase,value:'SATURN(RERAS->BinaryDecisionOnRule)'),sort:!('@timestamp',desc))
        
      3. These are usually used by reporting tools that have tons of parameters appended to their URLs.
      4. With the URL added to the description field, go ahead and generate a site export.
      5. Import that to Cloud.

      Expected Results

      URL is rendered accordingly.

      Actual Results

      Exclamation marks in the URL are parsed by the New Issue View as possible reference to attachments and what seems to be missing attachments get displayed - Notice that colons get parsed as emojis too:

      Workaround

      1. Switch to the Old Issue View by appending ?oldIssueView=true at the end of your issue view URL:
        https://test.atlassian.net/browse/TEST-1?oldIssueView=true
        
      2. Go ahead and copy all the text inside the Description Field (CTRL+C).
      3. Switch back to New Issue View.
      4. Delete everything in the Description field.
      5. Paste what you have previously copied in the Description Field (CTRL+V).
      6. You will have all the needed content in there (URLs, etc.) but in an unformatted format.
      7. Go ahead and manually re-apply formatting, such as code boxes, etc.

      Extra

      This might be happening because Jira uses the exclamation mark to reference attachments. However, the New Issue View shouldn't try to parse URLs to find attachments. Reference:

      !Screen Shot 2020-03-06 at 12.46.39.png|thumbnail!
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mhorlle Marcelo Horlle
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: