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

renderedFields API emits html where the next element is outside the initial table html tag.

XMLWordPrintable

      Issue Summary

      When we do a GET request _ with _fields=description&expand=renderedFields , The issue has a simple description with a table and a couple of values in the cell text\n\ntext where \n is new line (enter on keyboard). The HTML code returns multiple <table class=‘confluenceTable’>  instead of one 

      Steps to Reproduce

      • Create a Jira issue with a simple table
      • Add values in one cell with text\n\ntext 
      • Use a Get call with postman as below
      https://demo.atlassian.net/rest/api/3/issue/AP-1?fields=description&expand=renderedFields  
      • You will see multiple <table class=‘confluenceTable’>

      Expected Results

      Only one table should be returned

      Actual Results

      We are seeing the table duplicated twice

      Workaround

      Have only one newline in the table cells, causing the generated html to be formatted as expected. 

              Unassigned Unassigned
              a12ae124a9a6 Varun
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: