Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-15061

Legacy Proforma "Paragraph (Plain text)" field embeds URL/link when linking with a Jira field

XMLWordPrintable

      Issue Summary

      When linked to a Jira field in Forms, the "Paragraph (Plain text)" form field (which is only available for the legacy Proforma customers) converts any link/URL added to it, causing a discrepancy between the values added to the Form and Jira fields.

      Steps to Reproduce

      1. Create a Request Type in a JSM project and add a Text field to the Request Form/Issue View;
      2. Go to Project Settings > Forms > Open and edit an existing Form where the "Paragraph (Plain text)" is present;
      3. Link this Form field with the previously created text field;
      4. Make sure that this Form is tied to a Request Type so the customers can create issues on the Portal by filling it;
      5. As a customer on the Customer Portal, add the following text script on the "Paragraph (Plain text)" Form field:
        <!-- Google Pixel Code Start --> <script> !function (w, d, t) { w.GoogleAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for( var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.google.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script") ;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)}; ttq.load('XXXXXXXX'); ttq.page(); }(window, document, 'ttq'); </script> <!-- Google Pixel Code End -->
        

      Expected Results

      As soon as the ticket is created, since both Forms and Jira fields are text fields, the following data should be present in these fields in the Jira Issue View:

      <!-- Google Pixel Code Start --> <script> !function (w, d, t) { w.GoogleAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie","holdConsent","revokeConsent","grantConsent"],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for( var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.google.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script") ;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)}; ttq.load('XXXXXXXX'); ttq.page(); }(window, document, 'ttq'); </script> <!-- Google Pixel Code End -->
       

      Actual Results

      As soon as the ticket is created, this is what we see in the text field within the Jira Issue View:

      <!-- Google Pixel Code Start --> <script> 
      
      Open
      Preview unavailable
      -- Google Pixel Code End -->
       

      The below exception is thrown in the system logs file:

      message: Error trying to convert wiki to ADF, issue id 353180. Some of the images were not found in the mediaservices (Waiting for upload to finish?).
      

      Workaround

      The only workaround available at the moment is to:

      • Edit the existing form;
      • Change the respective field type from "Paragraph (Plain text)" to "Paragraph";
      • Save the Form.

              Unassigned Unassigned
              rsilva@atlassian.com Rodrigo Silva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: